Is it possible to change a picture resolution with Python?

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

> image:
> This is some example code:
> from PIL import Image
> im ="1.jpg")
> nx, ny = im.size
> im2 = im.resize((int(nx*1.5), int(ny*1.5)), Image.BICUBIC)
> Bye,
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
Any idea how to do that?
Thank you

More information about the Python-list mailing list