2004.05.27 17:43 "[Tiff] support for modify compressed tile.", by

2004.05.27 19:08 "Re: [Tiff] support for modify compressed tile.", by Frank Warmerdam

I'm working on a large image viewer project. Currently I have a viewer that works with libtiff and supports large tiff tiled files, and zooms.

Now I want to implement a libtiff editor, but my problem is that when I'm trying to update a tile works if the image is uncompressed, but fails if the image is compressed ( I need compressed images ). Other problem is that I can have a read/write acces to the file simultaneous. To read and write some information.


It should be possible to open the file in "update" mode (ie. mode="r+") to read and write on the same handle.

Re-writing compressed blocks is somewhat more problematic. What we really need is to keep track of freespace in the file, and to move blocks to another location if the compressed form is larger than the existing space. This is a non-trivial change to make but shouldn't be insurmountable. I don't forsee Andrey or I implementing this though, unless you can fund some of his time or he takes a particular interest in doing it.

If you can prepare careful patches we might be able to integrate them into the core.

Best regards,

I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent