Fantastic, thanks so much, that is exactly the fix I needed.

On 1/16/07, Markus Kemmerling <[EMAIL PROTECTED]> wrote:
> The Tiff image plugin handles the RESOLUTION_UNIT field incorrectly,
> see http://mail.python.org/pipermail/image-sig/2006-July/004011.html.
>
> Markus Kemmerling
> Medical University Vienna
>
> Am 11.01.2007 um 10:42 schrieb Dennis Shimer:
>
> > I have a tif image that at least 3 different programs can see the
> > correct dpi information in
> > (Irfanview, Gimp, Alchemy) but when I read the image using pil 1.6
> >
> > print im.info  -  shows only {'compression': 'raw'}
> > dpix,dpiy=im.info['dpi']  -  gives an exception
> >
> > and if I set it explicitely then using
> > im.save(filename,dpi=(dpix,dpiy))
> >
> > Irfanview sees the new dpi.
> > Gimp complains that "resoultion units are meaningless"
> > and Alchemy sees no DPI info at all but doesn't complain.
> >
> > Is there any reason that there is so much inconsistancy in results, or
> > a way to write dpi with pil that would be universally recognized?
> > _______________________________________________
> > Image-SIG maillist  -  Image-SIG@python.org
> > http://mail.python.org/mailman/listinfo/image-sig
>
> _______________________________________________
> Image-SIG maillist  -  Image-SIG@python.org
> http://mail.python.org/mailman/listinfo/image-sig
>
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to