AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2018.03.06 19:17 "[Tiff] TIFF image is writing less tag entries than original image", by Bhaskar Reddy
2018.03.06 20:23 "Re: [Tiff] TIFF image is writing less tag entries than original image", by Bhaskar Reddy
2018.03.07 22:57 "Re: [Tiff] TIFF image is writing less tag entries than original image", by Roger Leigh
2018.03.08 19:09 "Re: [Tiff] TIFF image is writing less tag entries than original image", by Bhaskar Reddy
2018.03.08 19:23 "Re: [Tiff] TIFF image is writing less tag entries than original image", by Kemp Watson
2018.03.08 23:09 "Re: [Tiff] TIFF image is writing less tag entries than original image", by Bhaskar Reddy
2018.03.09 00:19 "Re: [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
2018.03.10 01:18 "Re: [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/