[EMAIL PROTECTED] wrote: > Has anyone had problems opening TIFF images from Corel Draw (version 10 at > least, if not others) using PIL? A user of one of my programs is having > issues, and the test image results in the following error when you try to > Image.open(file): > > IOError: cannot identify image file > > The magic number looks ok, Photoshop opens it ok, but PIL doesn't like it. > > I've posted a copy of the sample file that has problems at: > http://www.cazabon.com/images/testCorel.tif
the file is said to have 999 extra layers, which is a bit more than PIL can handle... running with Image.DEBUG = 1 results in this output: tag: NewSubfileType (254) - type: long (4) - value: (0,) tag: ImageWidth (256) - type: long (4) - value: (100,) tag: ImageLength (257) - type: long (4) - value: (100,) tag: BitsPerSample (258) - type: short (3) - value: (8, 8, 8, 8) tag: Compression (259) - type: short (3) - value: (1,) tag: PhotometricInterpretation (262) - type: short (3) - value: (2,) tag: ImageDescription (270) - type: ascii (2) - value: tag: StripOffsets (273) - type: long (4) - value: (32, 8032, 16032, 24032, 32032) tag: Orientation (274) - type: short (3) - value: (1,) tag: SamplesPerPixel (277) - type: short (3) - value: (4,) tag: RowsPerStrip (278) - type: long (4) - value: (20,) tag: StripByteCounts (279) - type: long (4) - value: (8000, 8000, 8000, 8000, 8000) tag: XResolution (282) - type: rational (5) - value: ((10629921, 100000),) tag: YResolution (283) - type: rational (5) - value: ((10629921, 100000),) tag: ResolutionUnit (296) - type: short (3) - value: (3,) tag: ExtraSamples (338) - type: short (3) - value: (999,) tag: unknown (34016) - type: ascii (2) - value: tag: unknown (34017) - type: ascii (2) - value: tag: unknown (34018) - type: ascii (2) - value: tag: unknown (34019) - type: short (3) - value: (0,) tag: unknown (34020) - type: short (3) - value: (8,) tag: unknown (34021) - type: short (3) - value: (16,) tag: unknown (34022) - type: byte (1) - value: () tag: unknown (34023) - type: byte (1) - value: (0,) tag: unknown (34024) - type: byte (1) - value: (0,) tag: unknown (34025) - type: byte (1) - value: () tag: unknown (34026) - type: byte (1) - value: () tag: unknown (34027) - type: byte (1) - value: (0, 0) tag: unknown (34028) - type: byte (1) - value: (0,) tag: unknown (34029) - type: ascii (2) - value: tag: unknown (34030) - type: long (4) - value: (0,) *** Summary *** - compression: raw - photometric_interpretation: 2 - planar_configuration: 1 - fill_order: 1 - size: (100, 100) format key: (2, 1, 1, (8, 8, 8, 8), (999,)) - unsupported format I'll look at this when I find the time (but don't let that stop you from digging into the code). </F> _______________________________________________ Image-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/image-sig
