#692460 Document '-8' command line option in man page

Package:
libtiff-tools
Source:
tiff
Description:
TIFF manipulation and conversion tools
Submitter:
Mathieu Malaterre
Date:
2015-01-19 15:30:10 UTC
Severity:
important
#692460#5
Date:
2012-11-06 13:08:11 UTC
From:
To:
I believe there an issue with tiff2rgba, for some reason it does not seems to be able to deal with BigTIFF as should.

Eg:

$ tiff2rgba -c none -n bigtiff.tif bigtiff3.tif
TIFFAppendToStrip: Maximum TIFF file size exceeded.
TIFFAppendToStrip: Maximum TIFF file size exceeded.
TIFFAppendToStrip: Maximum TIFF file size exceeded.

where:

$ tiffinfo bigtiff.tif
TIFF Directory at offset 0x2367dba90 (9504144016)
  Image Width: 78000 Image Length: 30462
  Resolution: 10, 10 pixels/cm
  Bits/Sample: 8
  Compression Scheme: None
  Photometric Interpretation: RGB color
  Extra Samples: 1<assoc-alpha>
  Orientation: row 0 top, col 0 lhs
  Samples/Pixel: 4
  Rows/Strip: 16
  Planar Configuration: single image plane

However it should always be possible to reduce an RGBA uncompressed TIFF into RGB uncompressed TIFF.

What looks suspicious is this:

$ tiff2rgba -n bigtiff.tif bigtiff2.tif
$ tiffdump bigtiff2.tif
bigtiff2.tif:
Magic: 0x4949 <little-endian> Version: 0x2a <ClassicTIFF>
...

while input is:

$ tiffdump bigtiff.tif
bigtiff.tif:
Magic: 0x4949 <little-endian> Version: 0x2b <BigTIFF>


My guess is that tiff2rgba try hard to write out ClassicTIFF when BigTIFF is required.

#692460#10
Date:
2012-11-06 13:16:43 UTC
From:
To:
severity 692460 minor
thanks

Hum, looks like I spoke too fast. The -undocumented- solution was
simply to pass -8 to the command line.

r: http://www.remotesensing.org/libtiff/v4.0.0.html
"For instance, you can use the -8 option on tiffcp to have tiffcp
produce BigTIFF files instead of the default ClassicTIFF."

Thx

#692460#17
Date:
2013-12-28 08:04:28 UTC
From:
To:
retitle 692460 Document '-8' command line option
severity 692460 important
found 692460 4.0.3-6
thanks

BigTIFF command line option is completely undocumented from
tiffcp/tiff2rgba and al.

#692460#28
Date:
2013-12-28 08:19:49 UTC
From:
To:
For some reason man pages are much less documented than -h output...
#692460#35
Date:
2014-01-08 21:51:01 UTC
From:
To:
Mathieu Malaterre <malat@debian.org> wrote:

Your bug report says 4.0.2-4, but later, you have

Are you sure this is still true with the latest tiff2rgba?  The version
that reportbug thinks you have predates bigtiff support.

#692460#40
Date:
2015-01-19 15:21:34 UTC
From:
To:
found -1 4.0.3-12
thanks

On Wed, Jan 8, 2014 at 10:51 PM, Jay Berkenbilt <qjb@debian.org> wrote:
[...]

Yes. This is still present in jessie.