Is it possible to change a picture resolution with Python?

Lad python at hope.cz
Wed Sep 20 18:01:21 CEST 2006


from
> image:
> http://www.pythonware.com/library/pil/handbook/image.htm
>
> This is some example code:
>
> from PIL import Image
> im = Image.open("1.jpg")
> nx, ny = im.size
> im2 = im.resize((int(nx*1.5), int(ny*1.5)), Image.BICUBIC)
> im2.save("2.png")
>
> Bye,
 bearophile,
Thank you for your reply.
But the above code increases size only , but not DPI resolutions(
vertical nad horizontal).I need  a higher  vertical and horisontal
resolutions.
Any idea how to do that?
Thank you




More information about the Python-list mailing list