AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
March 2008

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2008.03.27 17:43 "Open Tiff File in Read and write mode.", by Jean-michel Frecinat
2008.04.02 10:29 "Re: Open Tiff File in Read and write mode.", by Gerben Vos

2008.04.02 10:29 "Re: Open Tiff File in Read and write mode.", by Gerben Vos

Jean-Michel FRECINAT wrote:

> I use libtiff 3.8.2 and i have some problems with memory. When I
> create a 30000x10000 pixels in cmyk, i have to have a lot of RAM
> memory (about 2-3GB).

> But my problem, i would open my file in read and write mode to edit
> and to process some pixels and after save the scanline into file.

I'm not very familiar with opening TIFFs in read-and-write mode, but
in general this is only going to work well if the TIFF is uncompressed.
Otherwise, the sizes of the new tiles/strips will differ from the old
ones, and libtiff will append the new data to the end of the TIFF,
leaving a large gap of unused data. (The TIFF is not one single large
strip, I hope.)

Also, maybe processing the TIFF by tile or strip works better than by
scanline.

					Gerben Vos.

-- 
Please reply to the list, not to me personally.