Andy McCurdy wrote:

> Just started using PIL.  I'm attempting to resize a .gif image to a
> smaller size, keeping the height/width proportional.  The resize
> works, but the resulting image is very grainy.

try converting the image to "RGB" first, and use resize(ANTIALIAS) on 
the RGB image before converting it back to P.

(if you resize a "P" image as is, you can only use the NEAREST 
resampling method.  this works reasonably well for certain kinds of 
"graphics", but less so for images that are dithered.  for some kinds of 
images, smoothing the RGB image before resizing it might also help.)

</F>

_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to