2019.01.12 17:25 "[Tiff] tiffcp altering image contents (in contrast to what the manual says)?", by Binarus

2019.01.13 15:41 "Re: [Tiff] tiffcp altering image contents (in contrast to what the manual says)?", by Binarus

Dear Bob,

I would be very grateful if somebody could shed some light onto this issue.

Are you able to supply 'tiffinfo' output for all of the input files and the output file?

It may be that the JPEG has been re-encoded.

at first, thank you very much for caring about the problem, and please excuse that your message has been rejected by our server. We are currently investigating why this has happened although we have whitelisted lists.osgeo.org (it seems that the list mail server, when connecting, does not give us an ENVFROM of xxx@lists.osgeo.org as expected, but instead an ENVFROM of <your email address>, which makes us scratch our heads ...). Fortunately, we have got the list digest in the meantime; otherwise, we would have missed your answer.

Anyhow, coming back to the subject:

I didn't want to clutter the actual message too much, so I have attached the results of tiffinfo. 1.txt contains the output of tiffinfo 1.tif, 2.txt contains the output of tiffinfo 2.tif, and so on. out.txt contains the results of tiffinfo out.tif.

Thank you very much again,

Binarus

TIFF Directory at offset 0xe1b08 (924424)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 8

Sample Format: unsigned integer Compression Scheme: JPEG Photometric Interpretation: YCbCr Orientation: row 0 top, col 0 lhs Samples/Pixel: 3 Rows/Strip: 16 Planar Configuration: single image plane Page Number: 0-4 Reference Black/White:

     0:     0   255
     1:   128   255
     2:   128   255
  DocumentName: ScanImage4240_out.tif

Software: GIMP 2.10.6 DateTime: 2019:01:12 17:04:19 JPEG Tables: (574 bytes)

TIFF Directory at offset 0x31a36c (3253100)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 8

Sample Format: unsigned integer Compression Scheme: JPEG Photometric Interpretation: YCbCr Orientation: row 0 top, col 0 lhs Samples/Pixel: 3 Rows/Strip: 16 Planar Configuration: single image plane Page Number: 1-4 Reference Black/White:

     0:     0   255
     1:   128   255
     2:   128   255
  DocumentName: ScanImage4240_out.tif

Software: IrfanView
JPEG Tables: (574 bytes)

TIFF Directory at offset 0x67d4b6 (6804662)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 8

Sample Format: unsigned integer Compression Scheme: JPEG Photometric Interpretation: YCbCr Orientation: row 0 top, col 0 lhs Samples/Pixel: 3 Rows/Strip: 16 Planar Configuration: single image plane Page Number: 2-4 Reference Black/White:

     0:     0   255
     1:   128   255
     2:   128   255
  DocumentName: ScanImage4240_out.tif

Software: IrfanView
JPEG Tables: (574 bytes)

TIFF Directory at offset 0x7bf266 (8122982)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 8

Sample Format: unsigned integer Compression Scheme: JPEG Photometric Interpretation: YCbCr Orientation: row 0 top, col 0 lhs Samples/Pixel: 3 Rows/Strip: 16 Planar Configuration: single image plane Page Number: 3-4 Reference Black/White:

     0:     0   255
     1:   128   255
     2:   128   255
  DocumentName: ScanImage4240_out.tif

Software: GIMP 2.10.6 DateTime: 2019:01:12 17:04:18 JPEG Tables: (574 bytes)

TIFF Directory at offset 0x1da3a (121402)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 1

Sample Format: unsigned integer Compression Scheme: AdobeDeflate Photometric Interpretation: min-is-white Orientation: row 0 top, col 0 lhs Samples/Pixel: 1 Rows/Strip: 102 Planar Configuration: single image plane Page Number: 0-4 DocumentName: ScanImage4257_out.tif Software: IrfanView

TIFF Directory at offset 0x34c24 (216100)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 1

Sample Format: unsigned integer Compression Scheme: AdobeDeflate Photometric Interpretation: min-is-white Orientation: row 0 top, col 0 lhs Samples/Pixel: 1 Rows/Strip: 102 Planar Configuration: single image plane Page Number: 1-4 DocumentName: ScanImage4257_out.tif Software: IrfanView

TIFF Directory at offset 0x466f0 (288496)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 1

Sample Format: unsigned integer Compression Scheme: AdobeDeflate Photometric Interpretation: min-is-white Orientation: row 0 top, col 0 lhs Samples/Pixel: 1 Rows/Strip: 102 Planar Configuration: single image plane Page Number: 2-4 DocumentName: ScanImage4257_out.tif Software: IrfanView

TIFF Directory at offset 0x4e6a6 (321190)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 1

Sample Format: unsigned integer Compression Scheme: AdobeDeflate Photometric Interpretation: min-is-white Orientation: row 0 top, col 0 lhs Samples/Pixel: 1 Rows/Strip: 102 Planar Configuration: single image plane Page Number: 3-4 DocumentName: ScanImage4257_out.tif Software: IrfanView

TIFF Directory at offset 0x14e6d2 (1369810)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 8

Sample Format: unsigned integer Compression Scheme: JPEG Photometric Interpretation: YCbCr Orientation: row 0 top, col 0 lhs Samples/Pixel: 3 Rows/Strip: 16 Planar Configuration: single image plane Page Number: 0-8 Reference Black/White:

     0:     0   255
     1:   128   255
     2:   128   255
  DocumentName: ScanImage4265_out.tif

Software: GIMP 2.10.6 DateTime: 2019:01:12 17:14:18 JPEG Tables: (574 bytes)

TIFF Directory at offset 0x336258 (3367512)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 8

Sample Format: unsigned integer Compression Scheme: JPEG Photometric Interpretation: YCbCr Orientation: row 0 top, col 0 lhs Samples/Pixel: 3 Rows/Strip: 16 Planar Configuration: single image plane Page Number: 1-8 Reference Black/White:

     0:     0   255
     1:   128   255
     2:   128   255
  DocumentName: ScanImage4265_out.tif

Software: GIMP 2.10.6 DateTime: 2019:01:12 17:14:19 JPEG Tables: (574 bytes)

TIFF Directory at offset 0x5be8ac (6023340)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 8

Sample Format: unsigned integer Compression Scheme: JPEG Photometric Interpretation: YCbCr Orientation: row 0 top, col 0 lhs Samples/Pixel: 3 Rows/Strip: 16 Planar Configuration: single image plane Page Number: 2-8 Reference Black/White:

     0:     0   255
     1:   128   255
     2:   128   255
  DocumentName: ScanImage4265_out.tif

Software: GIMP 2.10.6 DateTime: 2019:01:12 17:14:11 JPEG Tables: (574 bytes)

TIFF Directory at offset 0x763ce4 (7748836)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 8

Sample Format: unsigned integer Compression Scheme: JPEG Photometric Interpretation: YCbCr Orientation: row 0 top, col 0 lhs Samples/Pixel: 3 Rows/Strip: 16 Planar Configuration: single image plane Page Number: 3-8 Reference Black/White:

     0:     0   255
     1:   128   255
     2:   128   255
  DocumentName: ScanImage4265_out.tif

Software: GIMP 2.10.6 DateTime: 2019:01:12 17:14:12 JPEG Tables: (574 bytes)

TIFF Directory at offset 0x8f7dd8 (9403864)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 8

Sample Format: unsigned integer Compression Scheme: JPEG Photometric Interpretation: YCbCr Orientation: row 0 top, col 0 lhs Samples/Pixel: 3 Rows/Strip: 16 Planar Configuration: single image plane Page Number: 4-8 Reference Black/White:

     0:     0   255
     1:   128   255
     2:   128   255
  DocumentName: ScanI

TIFF Directory at offset 0x1a0e4 (106724)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 1

Sample Format: unsigned integer Compression Scheme: AdobeDeflate Photometric Interpretation: min-is-white Orientation: row 0 top, col 0 lhs Samples/Pixel: 1 Rows/Strip: 102 Planar Configuration: single image plane Page Number: 0-2 DocumentName: ScanImage4273_out.tif Software: IrfanView

TIFF Directory at offset 0x1f6b6 (128694)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 1

Sample Format: unsigned integer Compression Scheme: AdobeDeflate Photometric Interpretation: min-is-white Orientation: row 0 top, col 0 lhs Samples/Pixel: 1 Rows/Strip: 102 Planar Configuration: single image plane Page Number: 1-2 DocumentName: ScanImage4273_out.tif Software: IrfanView

TIFF Directory at offset 0x8b45e (570462)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 8

Sample Format: unsigned integer Compression Scheme: JPEG Photometric Interpretation: YCbCr Orientation: row 0 top, col 0 lhs Samples/Pixel: 3 Rows/Strip: 16 Planar Configuration: single image plane Page Number: 0-0 Reference Black/White:

     0:     0   255
     1:   128   255
     2:   128   255
  DocumentName: ScanImage4240_out.tif

Software: GIMP 2.10.6 DateTime: 2019:01:12 17:04:19 JPEG Tables: (574 bytes)

TIFF Directory at offset 0x19174e (1644366)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 8

Sample Format: unsigned integer Compression Scheme: JPEG Photometric Interpretation: YCbCr Orientation: row 0 top, col 0 lhs Samples/Pixel: 3 Rows/Strip: 16 Planar Configuration: single image plane Page Number: 1-0 Reference Black/White:

     0:     0   255
     1:   128   255
     2:   128   255
  DocumentName: ScanImage4240_out.tif

Software: IrfanView
JPEG Tables: (574 bytes)

TIFF Directory at offset 0x380a56 (3672662)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 8

Sample Format: unsigned integer Compression Scheme: JPEG Photometric Interpretation: YCbCr Orientation: row 0 top, col 0 lhs Samples/Pixel: 3 Rows/Strip: 16 Planar Configuration: single image plane Page Number: 2-0 Reference Black/White:

     0:     0   255
     1:   128   255
     2:   128   255
  DocumentName: ScanImage4240_out.tif

Software: IrfanView
JPEG Tables: (574 bytes)

TIFF Directory at offset 0x44acfe (4500734)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 8

Sample Format: unsigned integer Compression Scheme: JPEG Photometric Interpretation: YCbCr Orientation: row 0 top, col 0 lhs Samples/Pixel: 3 Rows/Strip: 16 Planar Configuration: single image plane Page Number: 3-0 Reference Black/White:

     0:     0   255
     1:   128   255
     2:   128   255
  DocumentName: ScanImage4240_out.tif

Software: GIMP 2.10.6 DateTime: 2019:01:12 17:04:18 JPEG Tables: (574 bytes)

TIFF Directory at offset 0x46974a (4626250)
    Subfile Type: multi-page document (2 = 0x2)
    Image Width: 2552 Image Length: 3508
    Resolution: 300, 300 pixels/inch
    Bits/Sample: 1

Sample Format: unsigned integer Compression Scheme: AdobeDeflate Photometric Interpretation: min-is-white Orientation: row 0 top, col 0 lhs Samples/Pixel: 1 Rows/Strip: 102 Planar Configuration: single image plane Page Number: 4-0 DocumentName: ScanImage4257_out.tif Software: IrfanView

TIFF Directory at offset 0x480e0e (4722190)
  Subfile Type: multi-page document (2 = 0x2)
  Image WiV