Page 1 of 1

MozJPEG encoder

Posted: Wed Oct 11, 2017 11:59 pm
by ianas
I just read that a google jpeg encoder has been added to xnview
I'd like to ask for another jpeg encoder MozJPEG (the more the merrier :D )
https://github.com/mozilla/mozjpeg
I've been using a custom build jpegoptim to re-encode jpegs with mozjpeg and the results are noticeable even a lossless conversion reduces file size 5-10% depending if the output is nonprogressive or progressive and as that project is based on libjpeg-turbo it can be implemented eather with a dll or an exe
unlike Guetzli MozJPEG does support progressive encoding.

I think one of the reasons Mozilla doesn't include webp support in Firefox is their jpeg encoder they say it's output is comparable to webp and decoding is a lot faster maybe google came up with Guetzli just to mess with mozilla

edit
while I haven't tested guetzli yet I did come across this article
https://www.pixelz.com/blog/guetzli-mozjpeg-comparison/
Pixelz Verdict: MozJPEG Remains First Choice for Product Images on the Web

MozJPEG files had fewer bytes 6 out of 8 times
MozJPEG and Guetzli were visually indistinguishable
MozJPEG encoded literally hundreds to a thousand times faster than Guetzli
MozJPEG supports progressive loading
that suggests mozjpeg should be preferred over google's encoder

Re: MozJPEG encoder

Posted: Wed Oct 25, 2017 2:33 pm
by omniplex
ianas wrote:that suggests mozjpeg should be preferred over google's encoder
Thanks, added to the rather hopeless Guetzli stub on enwiki. :|

Re: MozJPEG encoder

Posted: Sun Aug 14, 2022 12:16 pm
by user123
Will MozJPEG ever be added to XnView? This thread is 5 years old but XnView curently has classic JPEG and Guetzli JPEG.

Re: MozJPEG encoder

Posted: Thu Jan 19, 2023 9:29 pm
by Stock
I just searched through XnConvert, but Convert has no Guetzli :/
MozJPG would be awesome as well.

Re: MozJPEG encoder

Posted: Thu Jan 19, 2023 9:36 pm
by cday
Stock wrote: Thu Jan 19, 2023 9:29 pm I just searched through XnConvert, but Convert has no Guetzli :/
If you are not already aware of it, Guetzli compression was only ever intended for use on small (web-size) images, and attempting to use it on larger images can result in exceptionally long save times: that has caused serious confusion several times.
MozJPG would be awesome as well.
Probably much better?

Re: MozJPEG encoder

Posted: Thu Jan 19, 2023 9:41 pm
by Stock
According to this article, MozJPEG wins hands down.

Re: MozJPEG encoder

Posted: Thu Jan 19, 2023 10:00 pm
by user123
Stock wrote: Thu Jan 19, 2023 9:41 pm According to this article, MozJPEG wins hands down.
Agree. MozJPEG would be a great addition to XnView converter.
Lately XnView has become my No. 1 converter tool. Previously I used RIOT optimizer for years, but developer has abandoned the project or isn't very interested in it. I liked its comparison window and possibility to preview, but unfortunately XnView doesn't have it, but is being more often updated and also has way more processing capabilities - cropping, resize, saving existing metadata and time, etc.

Re: MozJPEG encoder

Posted: Sat Jan 21, 2023 10:15 am
by Stock
Granted, the article is from 2017.
In 2019, .avif popped into existence.
Here is what Netflix thinks about it with some nice comparisons.

Re: MozJPEG encoder

Posted: Sun Jan 22, 2023 8:09 pm
by WinnieW
Stock wrote: Thu Jan 19, 2023 9:41 pm According to this article, MozJPEG wins hands down.
Yeah, but the MozJPEG encoder does size optimization only for progressive JPEG files, not the more common sequential ones.
If you want the usual JPEG files you can't use MozJPEG.

Use JPEGoptim or JPEGtran if you want more optimized JPEG files.

I don't expect the Guetzli JPEG encoder will be implemented in XnView Classic.