glencoesoftware / raw2ometiff

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

Setting quality for JPEG compression #68

Closed xkacenga closed 1 year ago

xkacenga commented 2 years ago

Hello, I am trying to convert slides using JPEG compression, but I have issues with setting --quality. I found this year old post. Is it still impossible to set quality for JPEG compression? If yes, what is the default quality (or how is it determined)?

Thank you, Martin

holubp commented 1 year ago

Hi, is there any update on this? Being unable to set the quality of JPEG compression is quite disabling for many applications. Thanks!

melissalinkert commented 1 year ago

The update to Bio-Formats 6.13.0 proposed in #103 includes https://github.com/ome/ome-codecs/pull/26, which introduced the ability to configure JPEG compression quality. As implied there, the expected quality would be between 0.25 and 1.0.

I have not yet verified that converting with --compression JPEG --quality 0.5 (or similar) works as intended, but we should be able to include this feature in the next raw2ometiff release.

sbesson commented 1 year ago

Closing as per https://github.com/glencoesoftware/raw2ometiff/pull/103#pullrequestreview-1432348988