Login  Register

Re: LZW compressed tiffs

Posted by Jarek Sacha on Sep 16, 2005; 3:12am
URL: http://imagej.273.s1.nabble.com/LZW-compressed-tiffs-tp3704864p3704867.html

Jon Harman wrote:

> On very large files it can take a while to write out the png image,
> but it is possible to close the image before the writing finishes and
> in this case the output is only partial.  You have to watch the ImageJ
> status line to verify that the write has finished.  Is there a way to
> lock the image from closing before the output routine has finished?

Good question. I do not know the answer. ImagePlus has method lock() to
indicate to other threads that an image is in use. I tried to add it to
writer plugin, it did not help (tested with ImageJ v.1.34h and 1.35c).
Seems that ImageJ is not checking if image is locked when it closes it.
It may be a bug. It is a good question for Wayne Rasband. You may want
to post it in a separate thread.

Jarek