XnView 1.98.5 writes duplicate TIFF Tags (Software)

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Post Reply
Webster8347
Posts: 1
Joined: Tue Nov 29, 2011 2:06 pm

XnView 1.98.5 writes duplicate TIFF Tags (Software)

Post by Webster8347 »

Hi Pierre, this seems to be a little bug: When you open a TIF image in XnView and save it again, XnView creates a duplicate TIFF Tag which leads to errors in other programms, like OCR or Barcode recognition tools.

Old, correct TIFF tags (here a TIFF saved with IrganView first):
  • ImageWidth (1 Short): 2480
    ImageLength (1 Short): 3481
    BitsPerSample (1 Short): 1
    Compression (1 Short): Group 4 Fax (aka CCITT FAX4)
    Photometric (1 Short): MinIsWhite
    FillOrder (1 Short): Msb2Lsb
    StripOffsets (1 Long): 8
    Orientation (1 Short): TopLeft
    SamplesPerPixel (1 Short): 1
    RowsPerStrip (1 Short): 3481
    StripByteCounts (1 Long): 2807
    XResolution (1 Rational): 300
    YResolution (1 Rational): 300
    PlanarConfig (1 Short): Contig
    ResolutionUnit (1 Short): Inch
    Software (10 ASCII): IrfanView
And here the TIFF tags of the same image saved with XnView with the duplicate "Software" tag...
  • ImageWidth (1 Long): 2480
    ImageLength (1 Long): 3481
    BitsPerSample (1 Short): 1
    Compression (1 Short): Group 4 Fax (aka CCITT FAX4)
    Photometric (1 Short): MinIsWhite
    StripOffsets (134 Long): 1324, 1332, 1340, 1348, 1356, 1364, 1372,...
    SamplesPerPixel (1 Short): 1
    RowsPerStrip (1 Long): 26
    StripByteCounts (134 Long): 7, 7, 7, 7, 7, 7, 7, 108, 221, 208, 210,...
    XResolution (1 Rational): 300
    YResolution (1 Rational): 300
    PlanarConfig (1 Short): Contig
    ResolutionUnit (1 Short): Inch
    Software (10 ASCII): IrfanView :bug:
    Software (32 ASCII): LIBFORMAT (c) Pierre-e Gougelet
Cheers,
Beat

---
BTW: I love XnView! Best image viewer ever! :D
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnView 1.98.5 writes duplicate TIFF Tags (Software)

Post by xnview »

yes right
Pierre.
Post Reply