Page 1 of 1

PictView garbled output (TIFF)

Posted: 10 Feb 2011, 02:01
by otrov
image in attachment
could be problem with byte order, as compression algorithm isn't

Code: Select all

---- File ----
File Type                       : TIFF
MIME Type                       : image/tiff
Exif Byte Order                 : Big-endian (Motorola, MM)
---- IFD0 ----
Subfile Type                    : Full-resolution Image
Image Width                     : 2411
Image Height                    : 1218
Bits Per Sample                 : 1
Compression                     : T4/Group 3 Fax
Photometric Interpretation      : WhiteIsZero
Strip Offsets                   : (Binary data 6817 bytes, use -b option to extract)
Orientation                     : Horizontal (normal)
Samples Per Pixel               : 1
Rows Per Strip                  : 1
Strip Byte Counts               : (Binary data 3619 bytes, use -b option to extract)
X Resolution                    : 300
Y Resolution                    : 300
Planar Configuration            : Chunky
Resolution Unit                 : inches
---- Composite ----
Image Size                      : 2411x1218

Re: PictView garbled output (TIFF)

Posted: 10 Feb 2011, 16:41
by Jan Patera
otrov wrote:image in attachment
Hmm, can you please ZIP or so the file & reattach? It doesn't seem to be possible to download a .tif file here :-(

Re: PictView garbled output (TIFF)

Posted: 10 Feb 2011, 16:46
by Slanec
Quite possible for me. Downloaded, zipped.

Re: PictView garbled output (TIFF)

Posted: 10 Feb 2011, 17:20
by Tomas Kopal
Jan Patera wrote:
otrov wrote:image in attachment
Hmm, can you please ZIP or so the file & reattach? It doesn't seem to be possible to download a .tif file here :-(
Fixed, tiff was set as an image, thus displaying inline. But browsers mostly does not support tiff format. Changed to raw binary data, should be better.

Re: PictView garbled output (TIFF)

Posted: 10 Feb 2011, 21:41
by SelfMan
I can confirm the bug.
PictView show a garbbled image. IrfanView on the other hand is just fine.

Re: PictView garbled output (TIFF)

Posted: 15 Feb 2011, 11:11
by Jan Patera
otrov wrote:image in attachment
could be problem with byte order, as compression algorithm isn't
The file seems violating the specification, it wrongly stores padding bits and EOL markers. Anyway, I added a workaround to deal with such files for the next version of AS (2.55b1? 2.60b1?).

Re: PictView garbled output (TIFF)

Posted: 15 Feb 2011, 12:01
by Slanec
How was the file created? It is worth a shot to contact developers of the software and make them aware of the spec violation...

Re: PictView garbled output (TIFF)

Posted: 15 Feb 2011, 18:52
by otrov
This sample file comes from example files shipped with vectorizer program: AlgoLab R2V Toolkit