User story
Ome-tiff supports lossy JPEG-2000 compression. On my particular dataset I converted it with bftools -compression set to JPEG-2000 Lossy. This reduced my image file from around 1mb each to 250kb. This reduction has positive performance implications for a web application that is fetching this data. The lossy compression may be an acceptable tradeoff in some cases for smaller file sizes.
I am currently using loadOmeTiff to load my files; however this does not appear to support JPEG-2000 Lossy.
Preferred solution
If loadOmeTiff supported JPEG-2000 Lossy and could decode it quickly it would give a more performant option for applications that fetch a lot of images.
Possible alternatives
I tried all the compression supported by bfconvert:
- zlib: This is potentially the next best option. My files were reduced from 1mb to 850kb. zlib seems to have an optimization option, but not sure if there's a way to select this with bfconvert.
- LZW: files were larger
- JPEG: did not work for my files
- JPEG-2000: My files were reduced from 1mb to 900kb.
- JPEG-2000 Lossy: My files were reduced from 1mb to 250kb.
Open to any other suggestions for reducing file size. The resolution of the files are not large. These are 767x767 pixels with a single channel of data. 1MB seems like could be reduced, especially if lossy compression is acceptable.
User story
Ome-tiff supports lossy JPEG-2000 compression. On my particular dataset I converted it with bftools
-compressionset toJPEG-2000 Lossy. This reduced my image file from around 1mb each to 250kb. This reduction has positive performance implications for a web application that is fetching this data. The lossy compression may be an acceptable tradeoff in some cases for smaller file sizes.I am currently using
loadOmeTiffto load my files; however this does not appear to supportJPEG-2000 Lossy.Preferred solution
If
loadOmeTiffsupportedJPEG-2000 Lossyand could decode it quickly it would give a more performant option for applications that fetch a lot of images.Possible alternatives
I tried all the compression supported by
bfconvert:Open to any other suggestions for reducing file size. The resolution of the files are not large. These are 767x767 pixels with a single channel of data. 1MB seems like could be reduced, especially if lossy compression is acceptable.