[Image-SIG] TIFF plugin issue

Dale Cieslak dale at blackbagtech.com
Thu Feb 24 18:30:59 CET 2011


Hi Sebastian,

It was a PSD file that I turned into a multi-image TIFF using ImageMagick 'convert' utility.  Do you need the actual image?

Thanks,
Dale

On Feb 24, 2011, at 12:39 AM, Sebastian Haase wrote:

> Dale,
> can you tell us how you generated such an image (IOW where the file came from)?
> 
> Thanks,
> Sebastian Haase
> 
> 
> On Thu, Feb 24, 2011 at 1:56 AM, Dale Cieslak <dale at blackbagtech.com> wrote:
>> Hi all,
>> 
>> While trying to operate on a multi-image TIFF using PIL, on a sub-image with this identification (from ImageMagick identify):
>> 
>> TIFF 1280x1024 1280x1024+0+0 1-bit Bilevel DirectClass 18.97MB 0.010u 0:00.000
>> 
>> I get an "unknown pixel mode" error.  It seems that this sub-image translates to an OPEN_INFO key of:
>> 
>> (II, 1, 1, 1, (1,1), (2,))
>> 
>> ...and there exists no corresponding value for such a key in the TiffImagePlugin.py module.
>> 
>> I've found that if I add the attached patch it seems to work fine for my case.  Does this look correct?  If so, please add it in.
>> 
>> Thanks in advance,
>> Dale
>> 
>> 
>> _______________________________________________
>> Image-SIG maillist  -  Image-SIG at python.org
>> http://mail.python.org/mailman/listinfo/image-sig
>> 
>> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3739 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/image-sig/attachments/20110224/945b3733/attachment.bin>


More information about the Image-SIG mailing list