Re: What's wrong with this TIF ... IOError("cannot identify image file")

Florian Höch <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
Hi, it has nothing to do with missing TIFF headers.

> TIFFDUMP OUTPUT FOR THE SECOND FILE 
> ===================================
> BitsPerSample (258) SHORT (3) 4<16 16 16 16>

PIL can't process 16-bit/channel images. You can use -depth 8
option in your ImageMagick commandline to force 8-bit/channel output
(as the original image is also 8-bit, I assume you use the Q16 version
of ImageMagick which always converts to 16-bit for supported fileformats
on output if you don't tell it otherwise).

Regards,

Florian Höch



_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.