Hello All,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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 = &quot;srk.jpg&quot; #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 = &quot;.jpg&quot;<br>im2.save(&quot;C:/nearest&quot; + ext)<br>im3.save(&quot;C:/Bicubic&quot; + ext)<br><br>print &quot;files are saved&quot;
<br><font color="#888888"><br></font><br clear="all"><br>-- <br>Varsha Purohit,<br>Graduate Student