2018.03.06 19:17 "[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

Bhaskar, I'm confused here, others may be also-- are you talking about IFDs, or tags?

Or, to ask another way, given one of your input files, how many images, IFDs, and tags in each IFD?

Kemp

On Thu, Mar 8, 2018 at 2:09 PM, Bhaskar Reddy <reddy.baskar0605@gmail.com> wrote:

I have not wriiten any code but I used the function
 "char save(ImlibImage * im, ImlibProgressFunction progress, char

progress_granularity)" in the library Imlib2 which calls function "tif = TIFFOpen(im->real_file, "w");" in the libtiff library to write the TIff image.

I downloaded

> a) the source code for imlib2 1.4.10 from http://www.linuxfromscratch. > org/blfs/view/cvs/x/imlib2.html and

  1. the source code for libtiff (Tiff 4.0.9) from http://www.linuxfromscratch.org/blfs/view/svn/general/libtiff.html
  2. So I guess I can't send all those files.

If anyone used the *TIFFOpen* function in tif_unix.c (which take care of calling all other required functions) to write the tiff image, then how many IFDs were seen in the written image?

I am seeing only 12 IFDs in written images for an input image of 17 or 14 IFDs.

On Wed, Mar 7, 2018 at 4:57 PM, Roger Leigh <rleigh@codelibre.net> wrote:

On 06/03/2018 19:17, Bhaskar Reddy wrote:

I am getting Tiff image (380 KB) with 12 tag entries in LITTLE-ENDIAN style When writing new tiff image file using libtiff (TIFF 4.0.6) in W mode with existing tiff file of 53KB which has 17 tag entries in BIG-ENDIAN style.

What are the 12 tag entries in the new file?

What are the 17 tag entries in the old file?

How did you write the new TIFF?

How did you write the original TIFF?

Do you have any code to show us?

Do you want to make the files available so we can take a look at them? Maybe run tiffinfo on both files and look at the differences?

Is everyone has the same problem? or Do I need to modify the code to write the tiff image successfully?

You need to provide some useful information if you want a useful answer.

  It's impossible to provide any sort of meaningful response without
something to go on.