Is it possible to change a picture resolution with Python?

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Wed Sep 20 18:13:03 CEST 2006


Lad:
> 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?

Do you need to overwrite the DPI tag contained in the header of a
Jpeg/PNG image?
Then you can probably find some library to modify such jpeg/png tags.
(I think Photoshop is able to do it.)

Bye,
bearophile




More information about the Python-list mailing list