2018.03.06 19:17 "[Tiff] TIFF image is writing less tag entries than original image", by Bhaskar Reddy

2018.03.10 01:12 "Re: [Tiff] TIFF image is writing less tag entries than original image", by Bob Friesenhahn

On Thu, 8 Mar 2018, Bhaskar Reddy wrote:

Basically

  1. I am reading input image (input_image.tiff) which has 17 tags and in Big-endian format and
  2. Then I wrote the same image (input_image.tiff) to a new image (written_image.tiff) using *Tiffopen(file, "w")*
  3. Now I got only 12 tags (instead of 17 tags) in Little-endian format when I read the written image (written_image.tiff)

If you use a utility like tiffcp then you are more likely to have most/all the tags in the output file.

If you want to preserve tags, then your writer will need to transcribe them. When you write a TIFF file using libtiff you are writing a new file.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/