2019.01.12 21:07 "Re: [Tiff] Tiff Digest, Vol 3, Issue 3", by Richard Nolde
On 1/12/19 1:00 PM, email@example.com wrote:
> Send Tiff mailing list submissions to
> To subscribe or unsubscribe via the World Wide Web, visit
> or, via email, send a message with subject or body 'help' to
> You can reach the person managing the list at
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Tiff digest..."
> Today's Topics:
> 1. tiffcp altering image contents (in contrast to what the
> manual says)? (Binarus)
> 2. Re: tiffcp altering image contents (in contrast to what the
> manual says)? (Bob Friesenhahn)
> Message: 1
> Date: Sat, 12 Jan 2019 18:25:46 +0100
> From: Binarus <firstname.lastname@example.org>
> To: email@example.com
> Subject: [Tiff] tiffcp altering image contents (in contrast to what
> the manual says)?
> Message-ID: <firstname.lastname@example.org> > Content-Type: text/plain; charset=utf-8
I have four multi-page TIFF files (with names 1.tif, 2.tif, 3.tif and 4.tif) which I would like to combine into one multi-page TIFF file WITHOUT re-encoding them (more exactly: without re-encoding the pages / images they contain).
Each of the single pages IN A CERTAIN source file has the same color depth, compression scheme and compression scheme parameters. The color
depth, compression scheme and compression parameters are different between the source files, though, as the following table shows:
- tif: 7.75 MB / 24 BPP / JPEG / 4 pages (images)
- tif: 315 KB / 1 BPP / ZIP / 4 pages (images)
- tif: 13,94 MB / 24 BPP / JPEG / 8 pages (images)
- tif: 127 KB / 1 BPP / ZIP / 2 pages (images)
The combined size of the source files is about 22.12 MB.
As noted above, my goal is to merge the source files WITHOUT RE-ENCODING or touching the image data otherwise. I have tried to do this for several days now, but every tool I know obviously decodes each page to a representation in memory first and then outputs the pages, re-encoding them.
Then, by accident, I stumbled across tiffcp, which I didn't know until then, and which seems to be part of libtiff, and which let me hope due to the following sentence in the manual (man tiffcp):
"tiffcp can be used to reorganize the storage characteristics of data in a file, but it is explicitly intended to not alter or convert the image data content in any way."
So I tried
tiffcp 1.tif 2.tif 3.tif 4.tif out.tif
I was very disappointed when I noticed that out.tif had a size of 13.55 MB. This size reduction (from 22.12 MB to 13.55 MB) is by far too much to be explained by "pure merging effects". Hence, I am convinced that tiffcp DOES alter the image data in some way, although the manual states
> the oppo