PIL DPI trouble
gagsl-py2 at yahoo.com.ar
Fri Sep 14 06:53:03 CEST 2007
En Thu, 13 Sep 2007 23:50:39 -0300, Gary Bloom <bloominator at hotmail.com>
> I notice that the PIL has trouble playing with the DPI of other programs
> and image standards: when I create a file with Paint Shop Pro or
> Photoshop, the PIL routines can't properly recognize the DPI.
Do you mean that PIL doesn't read the DPI attribute from the file, or
shows a different value than expected?
> And when I create an image file (via the save method) of PIL, setting
> the DPI, those same two programs can't read the DPI as set by them. Is
> there a workaround for this?
Using which file format?
DPI is just an indication, a reference value. Changing it won't modify the
image size in pixels, quality or resolution. Maybe you could post some
sample code showing what you attempt to do.
More information about the Python-list