Bio-Formats ome-tiff write time issue / bug?

fiji
bio-formats
icy
imagej
ome-tiff
apeer

#1

ome tiff export is super slow:
Example with an (empty) simple empty hyperstack, 5 channels 16 bits, 1000x1000 , 300 time points (about 3GB in tif).

Tiff writing with Fiji: 10 sec
Tiff writing from Fiji Bio-Formats exporter or Icy (save as Tiff, using Bio-Formats by default): more than 2 minutes (I was not patient enough to let it finish).

Do you have any idea how to fix that in Bio-Formats (super useful otherwise, thanks for developing and maintaining btw)? could all software propose an alternate saving otherwise (in icy it is the only export format in tif available for now)?
Kind regards,
Perrine


Make tags obligatory, and introduce tag hierarchy?
#2

I also noticed that that writing OME-TIFF recently got super slow, so that I was running into a timeout. I do not remember the exact numbers but it was several minutes for MB-sized image.
I noticed that when writing images from inside a Fiji Docker container while testing a new module for the APEER platform.
Any hints what could be the reason would be really helpful.


#3

These times do appear to be longer than expected so thank you for raising this as a concern. The Bio-Formats team has been carrying out some tests on this today and we have been able to reproduce these sort of times using similar dimensions. My initial view is that this is a performance issue rather than a bug and it is not specific to the FIJI plugin. We have also begun to look into profiling the tiff writing process in order to better understand what the bottlenecks are and how they can be improved going forward. This is something that we will have to further investigate going forward.

David Gault


#4

Hi David,

thanks for the update. Let me know if I can help with more info etc.

Sebi


#5

Hi David,

are there any updates on this because I emcountered that issue today again. Basically I did run into a timeout when using BioFormats Export to write a file.

If it is supposed to be fixed, then which version of BioFormats should I use?

Sebi


#6

We are still trying to profile this better and we are hoping to prioritise work to make improvements to this shortly. There is some ongoing discussion on https://trello.com/c/OimiHAQY/39-ome-common-profile-tiff-writing which you can follow. This will be further updated with the latest findings over the next few weeks.


#7

Thx for the update.

Sebi


#8

Thanks for the link.


#9

I too have been using BioFormats from my own Java application to read/write OME-TIF files and the performance can be very slow. Whilst on my Mac with internal SSD the performance is acceptable, the moment I switch to using a slower target (network disk for example) the performance really plummets.

I have some more tests to try, but I suspect that during the write process calls to ImageWritter::saveBytes might be opening/writing/closing the file each time which perhaps may defeat some file system caching?

One thing I will look to test is whether writing to a temporary file on the local filesystem and then block moving this into the final destination improves matters for a network drive.

Iā€™d sure be interested to hear if there has been progress with this issue.

ā€“ Michael Ellis