2006.06.07 11:39 "[Tiff] Editing a tiff image using libtiff", by Sachin Garg

2006.06.07 11:39 "[Tiff] Editing a tiff image using libtiff", by Sachin Garg

I am coding an application where I want to do a minor edit in a tiff image. The problem is that even a minor edit can change the compressed image size, and this will mean that all the offsets everywhere to all the tags/values after the compressed image data will have to updated.

afaik, libtiff rewrites the entire tiff image with the directory at the end. However in cases where a user might have structured a tiff file as per his specific requirements, such restructuring for a minor edit may be too much to ask.

I will like to be able to do this minor image edit while maintaining the existing tiff structure, but updating all the offsets seems an overwhelming task. Any suggestions on how I should tackle this situation?

Unfortunately it seems I will not be able to use libtiff here.

Sachin Garg [India]
www.sachingarg.com | www.c10n.info