Page 1 of 1

Support for alternative JPEG encoders like MozJPEG ?

Posted: Mon Oct 24, 2022 5:13 pm
by porg
https://research.mozilla.org/2014/03/05 ... g-project/
The goal is to provide a production-quality JPEG encoder that improves compression while maintaining compatibility with the vast majority of deployed decoders.
And as some third party tests indicate the Mozilla engineers succeeded in this goal.

https://siipo.la/blog/is-webp-really-better-than-jpeg
It depends if you are using the reference libjpeg library or the improved MozJPEG encoder.

WebP seems to have about 10% better compression compared to libjpeg in most cases, except with 1500px images where the compression is about equal.

However, when compared to MozJPEG, WebP only performs better with small 500px images. With other image sizes the compression is equal or worse.

I think MozJPEG is the clear winner here with consistently about 10% better compression than libjpeg.

Since most of the time WebP is used alongside JPEG fallback, by using WebP you will essentially double your storage costs with little benefit.

So, in the end, I would recommend using WebP in only few cases. […]

So could GraphicConverter optionally support MozJPEG as a possible JPEG encoder?

Re: Support for alternative JPEG encoders like MozJPEG ?

Posted: Mon Oct 31, 2022 3:26 pm
by porg
There was a thread started in April 2021 by the principal developer and sole maintainer of libjpeg-turbo which hinted you to some incorrectnesses, you then answered preliminarily, and then that thread ends without any conclusion. What was the end result then? Maybe Apple silicon support is improved meanwhile and no hurdle anymore?

Which JPEG encoder does GraphicConverter use now?
Can the user choose that?

Is there support planned for the more modern/efficient JPEG encoders like MozJPEG or libjpeg-turbo ?

Re: Support for alternative JPEG encoders like MozJPEG ?

Posted: Mon Oct 31, 2022 7:07 pm
by forum_adm
libjpeg-turbo works only onto Intel based machines. GraphicConverter uses it already for decoding onto Intel machines.

I use the standard JPEGLib with support for lossless encoding.

I add the MozJPEG to the todo list.

Re: Support for alternative JPEG encoders like MozJPEG ?

Posted: Mon Oct 31, 2022 7:13 pm
by porg
Very cool that MozJPEG makes it onto the todo list.
Please post here as soon as it is clearer in what direction this moves.

Re: Support for alternative JPEG encoders like MozJPEG ?

Posted: Mon Jan 29, 2024 2:46 pm
by porg
@forum_adm any news regarding MozJPEG since our exchange started?

(My application: Album art embedded in audio files. Usually support only PNG and JPEG. Want to create as small as reasonable possible JPEGs)

Re: Support for alternative JPEG encoders like MozJPEG ?

Posted: Mon Jan 29, 2024 8:15 pm
by forum_adm
I work currently onto Display HDR support.

So, no news for MozJPEG.

BTW: GC supports already Turbo JPEG onto Intel and Apple Silicon for decoding.