Hello All,<br> I am actually working on a project which deals with
image processing. I just used pil function to resize the image into the
dimensions i want. i was able to resize the image but the clarity of
the new image is not good. Can anyone suggest which other functions i
should use to improve the clarity. I am attaching the code and sending
the images in the attachment. Can anyone suggest me how to do it ?
<br><br>import Image<br><br>imageFile = "srk.jpg" #original small image<br><br>im1 = Image.open(imageFile)<br><br>width = 680<br>height = 420<br><br>im2 = im1.resize((width,height), Image.NEAREST)<br>im3 = im1.resize
((width,height), Image.BICUBIC)<br><br>#images get saved in c drive with jpg extensions<br>ext = ".jpg"<br>im2.save("C:/nearest" + ext)<br>im3.save("C:/Bicubic" + ext)<br><br>print "files are saved"
<br><font color="#888888"><br></font><br clear="all"><br>-- <br>Varsha Purohit,<br>Graduate Student