MozJPEG encoder

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, helmut, xnview

ianas
Posts: 5
Joined: Wed Oct 11, 2017 11:48 pm

MozJPEG encoder

Post 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
User avatar
omniplex
Posts: 127
Joined: Thu Feb 10, 2011 1:52 pm
Location: Hamburg

Re: MozJPEG encoder

Post by omniplex »

ianas wrote:that suggests mozjpeg should be preferred over google's encoder
Thanks, added to the rather hopeless Guetzli stub on enwiki. :|
user123
Posts: 15
Joined: Tue Jul 26, 2022 3:08 pm

Re: MozJPEG encoder

Post by user123 »

Will MozJPEG ever be added to XnView? This thread is 5 years old but XnView curently has classic JPEG and Guetzli JPEG.
User avatar
Stock
Posts: 36
Joined: Wed Oct 12, 2022 3:33 pm

Re: MozJPEG encoder

Post by Stock »

I just searched through XnConvert, but Convert has no Guetzli :/
MozJPG would be awesome as well.
cday
XnThusiast
Posts: 4186
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: MozJPEG encoder

Post 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?
User avatar
Stock
Posts: 36
Joined: Wed Oct 12, 2022 3:33 pm

Re: MozJPEG encoder

Post by Stock »

According to this article, MozJPEG wins hands down.
user123
Posts: 15
Joined: Tue Jul 26, 2022 3:08 pm

Re: MozJPEG encoder

Post 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.
User avatar
Stock
Posts: 36
Joined: Wed Oct 12, 2022 3:33 pm

Re: MozJPEG encoder

Post 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.
WinnieW
Posts: 27
Joined: Thu Jan 17, 2013 2:28 pm

Re: MozJPEG encoder

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