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.09 00:19 "Re: [Tiff] TIFF image is writing less tag entries than original image", by Bhaskar Reddy

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)

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

Sorry for the confusion.

I have one image in Big Endian format, one IFD, and 17 tags in that IFD. So when I write Tiff image with above input image, then I am getting only 12 Tags instead of 17 tags and in Little Endian format.

On Thu, Mar 8, 2018 at 1:23 PM, Kemp Watson <kemp@objectivepathology.com> wrote:

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.

--

Thanks,
Bhaskar.