Repository navigation
Unable to open multipage multichannel TIFF #2485
Copy link
Copy link
Closed
Labels
Description
Activity
64-bit TIFFs aren't supported. See #1888.
Setting
DEBUG = Trueat the top of TiffImagePlugin.py tells us its format key('II', 2, (3,), 1, (64, 64, 64), ())is unsupported:Details
*** TiffImageFile._open *** - __first: 8 - ifh: II* Seeking to frame 0, on frame -1, __next 8, location: 8 Loading tags, location: 8 tag: NewSubfileType (254) - type: long (4) - value: 2 tag: ImageWidth (256) - type: long (4) - value: 10 tag: ImageLength (257) - type: long (4) - value: 10 tag: BitsPerSample (258) - type: short (3) Tag Location: 58 - Data Location: 206 - value: (64, 64, 64) tag: Compression (259) - type: short (3) - value: 1 tag: PhotometricInterpretation (262) - type: short (3) - value: 2 tag: ImageDescription (270) - type: string (2) Tag Location: 94 - Data Location: 212 - value: shape=(2,3,10,10) tag: StripOffsets (273) - type: long (4) Tag Location: 106 - Data Location: 230 - value: (286, 1086, 1886) tag: Orientation (274) - type: short (3) - value: 1 tag: SamplesPerPixel (277) - type: short (3) - value: 3 tag: RowsPerStrip (278) - type: long (4) - value: 10 tag: StripByteCounts (279) - type: long (4) Tag Location: 154 - Data Location: 242 - value: (800, 800, 800) tag: PlanarConfiguration (284) - type: short (3) - value: 2 tag: Software (305) - type: string (2) Tag Location: 178 - Data Location: 254 - value: tifffile.py tag: DateTime (306) - type: string (2) Tag Location: 190 - Data Location: 266 - value: 2015:05:09 09:08:29 tag: SampleFormat (339) - type: short (3) - value: (3,) tag: NewSubfileType (254) - type: long (4) - value: 2 tag: ImageWidth (256) - type: long (4) - value: 10 tag: ImageLength (257) - type: long (4) - value: 10 tag: BitsPerSample (258) - type: short (3) Tag Location: 58 - Data Location: 206 - value: (64, 64, 64) tag: Compression (259) - type: short (3) - value: 1 tag: PhotometricInterpretation (262) - type: short (3) - value: 2 tag: ImageDescription (270) - type: string (2) Tag Location: 94 - Data Location: 212 - value: shape=(2,3,10,10) tag: StripOffsets (273) - type: long (4) Tag Location: 106 - Data Location: 230 - value: (286, 1086, 1886) tag: Orientation (274) - type: short (3) - value: 1 tag: SamplesPerPixel (277) - type: short (3) - value: 3 tag: RowsPerStrip (278) - type: long (4) - value: 10 tag: StripByteCounts (279) - type: long (4) Tag Location: 154 - Data Location: 242 - value: (800, 800, 800) tag: PlanarConfiguration (284) - type: short (3) - value: 2 tag: Software (305) - type: string (2) Tag Location: 178 - Data Location: 254 - value: tifffile.py tag: DateTime (306) - type: string (2) Tag Location: 190 - Data Location: 266 - value: 2015:05:09 09:08:29 tag: SampleFormat (339) - type: short (3) - value: (3,) *** Summary *** - compression: raw - photometric_interpretation: 2 - planar_configuration: 2 - fill_order: 1 - size: (10, 10) format key: ('II', 2, (3,), 1, (64, 64, 64), ()) - unsupported format *** TiffImageFile._open *** - __first: 8 - ifh: II* Seeking to frame 0, on frame -1, __next 8, location: 8 Loading tags, location: 8 tag: NewSubfileType (254) - type: long (4) - value: 2 tag: ImageWidth (256) - type: long (4) - value: 10 tag: ImageLength (257) - type: long (4) - value: 10 tag: BitsPerSample (258) - type: short (3) Tag Location: 58 - Data Location: 206 - value: (64, 64, 64) tag: Compression (259) - type: short (3) - value: 1 tag: PhotometricInterpretation (262) - type: short (3) - value: 2 tag: ImageDescription (270) - type: string (2) Tag Location: 94 - Data Location: 212 - value: shape=(2,3,10,10) tag: StripOffsets (273) - type: long (4) Tag Location: 106 - Data Location: 230 - value: (286, 1086, 1886) tag: Orientation (274) - type: short (3) - value: 1 tag: SamplesPerPixel (277) - type: short (3) - value: 3 tag: RowsPerStrip (278) - type: long (4) - value: 10 tag: StripByteCounts (279) - type: long (4) Tag Location: 154 - Data Location: 242 - value: (800, 800, 800) tag: PlanarConfiguration (284) - type: short (3) - value: 2 tag: Software (305) - type: string (2) Tag Location: 178 - Data Location: 254 - value: tifffile.py tag: DateTime (306) - type: string (2) Tag Location: 190 - Data Location: 266 - value: 2015:05:09 09:08:29 tag: SampleFormat (339) - type: short (3) - value: (3,) tag: NewSubfileType (254) - type: long (4) - value: 2 tag: ImageWidth (256) - type: long (4) - value: 10 tag: ImageLength (257) - type: long (4) - value: 10 tag: BitsPerSample (258) - type: short (3) Tag Location: 58 - Data Location: 206 - value: (64, 64, 64) tag: Compression (259) - type: short (3) - value: 1 tag: PhotometricInterpretation (262) - type: short (3) - value: 2 tag: ImageDescription (270) - type: string (2) Tag Location: 94 - Data Location: 212 - value: shape=(2,3,10,10) tag: StripOffsets (273) - type: long (4) Tag Location: 106 - Data Location: 230 - value: (286, 1086, 1886) tag: Orientation (274) - type: short (3) - value: 1 tag: SamplesPerPixel (277) - type: short (3) - value: 3 tag: RowsPerStrip (278) - type: long (4) - value: 10 tag: StripByteCounts (279) - type: long (4) Tag Location: 154 - Data Location: 242 - value: (800, 800, 800) tag: PlanarConfiguration (284) - type: short (3) - value: 2 tag: Software (305) - type: string (2) Tag Location: 178 - Data Location: 254 - value: tifffile.py tag: DateTime (306) - type: string (2) Tag Location: 190 - Data Location: 266 - value: 2015:05:09 09:08:29 tag: SampleFormat (339) - type: short (3) - value: (3,) *** Summary *** - compression: raw - photometric_interpretation: 2 - planar_configuration: 2 - fill_order: 1 - size: (10, 10) format key: ('II', 2, (3,), 1, (64, 64, 64), ()) - unsupported format Traceback (most recent call last): File "2485.py", line 3, in <module> im = Image.open('multipage_rgb.tif') File "/Users/hugo/github/Pillow/PIL/Image.py", line 2452, in open % (filename if filename else fp)) IOError: cannot identify image file 'multipage_rgb.tif'I'll add the info to #1888 and close this issue. Thanks!
Using this image (needs to be downloaded) from
scikit-image, was unable to open the file with Pillow. The image file is a multipage RGB TIFF containingfloat64values. Code snippet and environment details below.Code sample:
Details
Conda environment:
Details