2017.10.10 05:43 "[Tiff] Memory management of Image", by Bhaskar Reddy

2017.10.17 00:15 "Re: [Tiff] Memory management of Image", by Kemp Watson

I¹m not sure I understand your question ­ are you adding images or significant binary data of some sort, or metadata associated with that? Technically, you can put anything you like into either, although IFDs are really meant for image data. Re tags, if your metadata is custom, you can use a private tag, or if you intend to have it reused, you can register the tag with Adobe. there are no restrictions on the content of private tags, you should have no need to know any kind of memory layout beyond your own tag. Your own tag should not interfere with any well-behaved TIFF application, it would simply be ignored by other applications not knowing or caring about it.

W. Kemp Watson

kemp@objectivepathology.com

Objective Pathology Services Limited

8250 Lawson Road
Milton, Ontario
Canada L9T 5C6

www.objectivepathology.com
tel. +1 (416) 970-7284

From: Bhaskar Reddy <reddy.baskar0605@gmail.com>
Date: Thursday, October 12, 2017 at 9:41 PM
To: Watson Kemp <kemp@objectivepathology.com>

Kemp,

Before adding new IFD entry/Tag ID, we should understand how does it work with existing IFDs. If not, the entire code with new tag ID may not work, if we add blindly.

So, I need to understand it.

Can you please help me in getting tree diagram of libtiff source code particularly with pointer/array structures from root to leaf level if you have any idea.

Thanks,
Bhaskar.

On Thu, Oct 12, 2017 at 7:48 PM, Kemp Watson <kemp@objectivepathology.com> wrote:

Why do you need to know the details? Can you not just use TIFFWriteDirectory, TIFFCreateCustomDirectory, TIFFWriteCustomDirectory, etc?

W. Kemp Watson

> <https://maps.google.com/?q=8250+Lawson+RoadMilton,+Ontario+Canada+%C2%A0L9T+5 > C6&entry=gmail&source=g>

Milton, Ontario

> <https://maps.google.com/?q=8250+Lawson+RoadMilton,+Ontario+Canada+%C2%A0L9T+5 > C6&entry=gmail&source=g>

> Canada

> <https://maps.google.com/?q=8250+Lawson+RoadMilton,+Ontario+Canada+%C2%A0L9T+5 > C6&entry=gmail&source=g> L9T 5C6

> <https://maps.google.com/?q=8250+Lawson+RoadMilton,+Ontario+Canada+%C2%A0L9T+5 > C6&entry=gmail&source=g>

>
> www.objectivepathology.com <http://www.objectivepathology.com>
> tel. +1 (416) 970-7284 <tel:(416)%20970-7284>

From: <tiff-bounces@lists.maptools.org> on behalf of Bhaskar Reddy

Thank you for your suggestion.

I am using sxiv tool in ubantu.

I need to add new IFD entry/Tag ID as part of my study. For this, I need to understand how IFDs and Data are stored in memory from the existing libtiff source code.

Much appreciated if you provide any documents for memory management of IFDs using libtiff.

On Oct 10, 2017 07:12, "Phil Harvey" <phil@owl.phy.queensu.ca> wrote:

> I need to know how IFD's are arranged in memory.

> You can use the ExifTool -htmldump feature to see how the IFD's are organized > in an image. Here is an example of this for a JPEG image, showing the TIFF

>> IFD's of the EXIF information:
>>
>> http://owl.phy.queensu.ca/~phil/exiftool/htmldump.html
>>
>> - Phil
>>
>>

> Tiff@lists.maptools.orghttp://lists.maptools.org/mail