Support for alternative JPEG encoders like MozJPEG ?

The right place to speak and share about your experiences of GraphicConverter
Post Reply
porg
Posts: 554
Joined: Tue Apr 05, 2022 1:04 pm
Country: Austria

Support for alternative JPEG encoders like MozJPEG ?

Post 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?
Last edited by porg on Mon Jan 29, 2024 2:43 pm, edited 1 time in total.
porg
Posts: 554
Joined: Tue Apr 05, 2022 1:04 pm
Country: Austria

Re: Support for alternative JPEG encoders like MozJPEG ?

Post 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 ?
User avatar
forum_adm
Site Admin
Posts: 1812
Joined: Fri Dec 23, 2016 9:41 am
Location: Germany
Country: Germany
Contact:

Re: Support for alternative JPEG encoders like MozJPEG ?

Post 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.
porg
Posts: 554
Joined: Tue Apr 05, 2022 1:04 pm
Country: Austria

Re: Support for alternative JPEG encoders like MozJPEG ?

Post 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.
porg
Posts: 554
Joined: Tue Apr 05, 2022 1:04 pm
Country: Austria

Re: Support for alternative JPEG encoders like MozJPEG ?

Post 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)
User avatar
forum_adm
Site Admin
Posts: 1812
Joined: Fri Dec 23, 2016 9:41 am
Location: Germany
Country: Germany
Contact:

Re: Support for alternative JPEG encoders like MozJPEG ?

Post 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.
Post Reply