[Image-SIG] Re: image resolution

Fredrik Lundh fredrik at pythonware.com
Tue Feb 15 12:35:03 CET 2005

Rene Warren wrote:

> I was wondering if it's possible to adjust the resolution of a newly
> created image under PIL.
> e.g. is it possible to specify the number of DPI?

depends on the file format.  many, but not all, output drivers support
the dpi= option.  example:

    im.save(filename, dpi=(72, 72))


More information about the Image-SIG mailing list