[Image-SIG] What's wrong with this TIF ... IOError("cannot identify image file")

Florian Höch lists+Image_SIG at hoech.org
Mon Nov 30 14:14:19 CET 2009


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





More information about the Image-SIG mailing list