2018.03.09 00:19 "Re: [Tiff] TIFF image is writing less tag entries than original image", by Bhaskar Reddy
- I am reading input image (input_image.tiff) which has 17 tags and in Big-endian format and
- Then I wrote the same image (input_image.tiff) to a new image (written_image.tiff) using *Tiffopen(file, "w")*
- 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 <email@example.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 <firstname.lastname@example.org> 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?
>> On Thu, Mar 8, 2018 at 2:09 PM, Bhaskar Reddy <email@example.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.
>>> a) the source code for imlib2 1.4.10 from
>>> http://www.linuxfromscratch.org/blfs/view/cvs/x/imlib2.html and
- the source code for libtiff (Tiff 4.0.9) from http://www.linuxfromscratch.org/blfs/view/svn/general/libtiff.html
- 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 <firstname.lastname@example.org> 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.