glencoesoftware / raw2ometiff

Raw format to OME-TIFF converter
GNU General Public License v2.0
49 stars 22 forks source link

Add --quality option to set the compression quality #34

Closed melissalinkert closed 4 years ago

melissalinkert commented 4 years ago

How the quality setting is interpreted depends upon the compression type. For lossless compression types, this likely won't make a difference. For JPEG-2000 Lossy, this is the encoding bit rate.

Some initial experimentation with the N5 pyramid converted from 1.isyntax suggests that --compression "JPEG-2000 Lossy" --quality 5.0 doesn't noticeably reduce the file size compared to the default quality of 10.0, but setting the quality to 1.0 or less rapidly reduces the file size.