jpegli - new and clever jpeg encoder

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

pokuly
Posts: 18
Joined: Fri Aug 25, 2017 7:22 pm

Re: jpegli - new and clever jpeg encoder

Post by pokuly »

Yeah, guetzli relies mainly on butteraugli. Jpegli also to some degree. So in some areas the results are similar but with guetzli other areas get blocky where with jpegli it doesn't.
Jpegli seems pretty mature.
Last edited by pokuly on Sun Mar 31, 2024 12:45 pm, edited 1 time in total.
forklab
Posts: 40
Joined: Tue Mar 02, 2021 7:27 pm

Re: jpegli - new and clever jpeg encoder

Post by forklab »

So waiting with hope for jpegli "from the box"
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: jpegli - new and clever jpeg encoder

Post by xnview »

See issue for current status and some details.
Pierre.
Kadet
Posts: 208
Joined: Thu Oct 20, 2022 7:23 pm

Re: jpegli - new and clever jpeg encoder

Post by Kadet »

I hope, Pierre, that we can choose XYB color space (cjpegli ... --xyb), because it gives better quality with smaller file to YUV color space.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: jpegli - new and clever jpeg encoder

Post by xnview »

Kadet wrote: Fri Apr 05, 2024 11:58 am I hope, Pierre, that we can choose XYB color space (cjpegli ... --xyb), because it gives better quality with smaller file to YUV color space.
first version will be only YUV
Pierre.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: jpegli - new and clever jpeg encoder

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.7.1. Please check and confirm the bug fix here.
Pierre.
Kadet
Posts: 208
Joined: Thu Oct 20, 2022 7:23 pm

Re: jpegli - new and clever jpeg encoder

Post by Kadet »

OK. It's work in option "save As" and "Multi convert", but first I have to set ON this codec in Settings.
User avatar
masterjp
Posts: 471
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: jpegli - new and clever jpeg encoder

Post by masterjp »

Thank you so much for the very fast solution to save JPEG files with the new JPEGLI encoder.
It saves so much time in my periodically conversion workflows. Fantastic.

The new jpegli encoder is a little bit hidden in the settings menu.
First you must disable the standard jpeg library and active the jpegli jpg format in settings menu.
Then it works perfect.
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.7 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.7
pokuly
Posts: 18
Joined: Fri Aug 25, 2017 7:22 pm

Re: jpegli - new and clever jpeg encoder

Post by pokuly »

Just for my understanding. Why may be the Xnview file bigger?
Here is what i mean. The Xnview file is 200kB bigger but the pure picture data must be the same
since jpegtran creates identical files out of out_cjpegli.jpg and out_Xnview.jpg

original.jpg 100% = 4.314.392 Bytes

cjpegli original.jpg out_cjpegli.jpg -q 86 --chroma_subsampling=420 = 2.686.324 Bytes

Xnview setting out_Xnview.jpg = 2.835.536 Bytes
jpegli.png
jpegli.png (12.73 KiB) Viewed 3533 times
jpegtran -optimize -progressive = 2.682.717 Bytes for both! output files
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: jpegli - new and clever jpeg encoder

Post by xnview »

pokuly wrote: Tue Apr 09, 2024 2:05 pm Just for my understanding. Why may be the Xnview file bigger?
please send me original, and 2 outputs file
Pierre.
Kadet
Posts: 208
Joined: Thu Oct 20, 2022 7:23 pm

Re: jpegli - new and clever jpeg encoder

Post by Kadet »

I confirm.

Smaller HD images have about 2kb difference. The larger test 4K image has a 27 kb difference.
Kadet
Posts: 208
Joined: Thu Oct 20, 2022 7:23 pm

Re: jpegli - new and clever jpeg encoder

Post by Kadet »

I did one more test — In XnView I turned off the Progressive option, which should result in a file that is a few kilos larger. It wasn't bigger. Therefore, I conclude that the selected Progressive option does not translate into jpegli parameters in XnView.
In cjpegli this is the "-p N" parameter N = 0..2.
When I added "-p 0" to cjpegli, the file grew to the size produced by XnView,
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: jpegli - new and clever jpeg encoder

Post by xnview »

Kadet wrote: Tue Apr 09, 2024 8:13 pm I did one more test — In XnView I turned off the Progressive option, which should result in a file that is a few kilos larger. It wasn't bigger. Therefore, I conclude that the selected Progressive option does not translate into jpegli parameters in XnView.
In cjpegli this is the "-p N" parameter N = 0..2.
When I added "-p 0" to cjpegli, the file grew to the size produced by XnView,
right, i'll update it
Pierre.
pokuly
Posts: 18
Joined: Fri Aug 25, 2017 7:22 pm

Re: jpegli - new and clever jpeg encoder

Post by pokuly »

Nice! Should have spotted that myself.
Post Reply