mate-desktop / eom

An image viewer for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
57 stars 32 forks source link

Incorrect/corrupt image displayed for floating-point TIFF file #330

Open paulmelis opened 2 years ago

paulmelis commented 2 years ago

Expected behaviour

melis@juggle 09:19:~/concepts/sahara-julia$ tiffinfo doh.tif 
TIFF Directory at offset 0x49160 (c008)
  Image Width: 64 Image Length: 64
  Bits/Sample: 32
  Sample Format: IEEE floating point
  Compression Scheme: None
  Photometric Interpretation: RGB color
  Samples/Pixel: 3
  Planar Configuration: single image plane
  Software: TiffImages.jl v0.5.2

melis@juggle 09:19:~/concepts/sahara-julia$ tiffdump doh.tif 
doh.tif:
Magic: 0x4949 <little-endian> Version: 0x2a <ClassicTIFF>
Directory 0: offset 49160 (0xc008) next 0 (0)
ImageWidth (256) LONG (4) 1<64>
ImageLength (257) LONG (4) 1<64>
BitsPerSample (258) SHORT (3) 3<32 32 32>
Compression (259) SHORT (3) 1<1>
Photometric (262) SHORT (3) 1<2>
StripOffsets (273) LONG (4) 1<8>
SamplesPerPixel (277) SHORT (3) 1<3>
StripByteCounts (279) LONG (4) 1<49152>
Software (305) ASCII (2) 21<TiffImages.jl v0.5.2\0>
SampleFormat (339) SHORT (3) 3<3 3 3>

Display of a full black image, without any alpha, for example as in the GIMP:

image

Or a warning, in case EOM does not want to support displaying floating-point images.

Actual behaviour

image

Steps to reproduce the behaviour

Load the image from doh.zip

MATE general version

1.26

Package version

EOM 1.26.0

Linux Distribution

Arch Linux