[XnConvert] JPEGLI is missing conversion parameters in .xbs

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
User avatar
Stock
Posts: 45
Joined: Wed Oct 12, 2022 3:33 pm

[XnConvert] JPEGLI is missing conversion parameters in .xbs

Post by Stock »

I've created a simple testscript for XnViewMP-Batch 1.8.6 as well as XnConvert 1.0.4
The purpose of the script is to convert images to JPEGLI with a quality level of 14.

This is the JPEG.xbs:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><XnView_script version="1.0" name="Testscript-JPEG">
    <Output folder="" filename="testscript" case="0" startIndex="1" format="JPEG">
        <Options overwrite="3" orgDate="true" keepMeta="false" keepICC="false" keepFolder="true" checkFilesize="false" keepParentFolder="false" keepExtension="true" delOrg="false" multipage="false" allPages="false" openExplorer="false" beep="true" openBrowser="false" clearItems="false"/>
        <JPEG useJPEGli="true" quality="14" progressive="true" optimizeHuffman="true" rebuildThumb="true" orgQuality="false" DCTMethod="2" subSampling="2" smoothFactor="0"/>
    </Output>
</XnView_script>
Note how all the conversion parameters in line#4 like "quality" etc. are saved correctly.

This is the JPEGLI.xbs:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><XnView_script version="1.0" name="Testscript-JPEGLI">
    <Output folder="" filename="testscript" case="0" startIndex="1" format="JPEGLI">
        <Options overwrite="3" orgDate="true" keepMeta="false" keepICC="false" keepFolder="true" checkFilesize="false" keepParentFolder="false" keepExtension="true" delOrg="false" multipage="false" allPages="false" openExplorer="false" beep="true" openBrowser="false" clearItems="false"/>
        <JPEGLI/>
    </Output>
</XnView_script>
Note that all the conversion parameters are missing in line #4 of the JPEGLI script:
- quality
- progressive
- optimizeHuffman
- rebuildThumb
- orgQuality
- DCTMethod
- subSampling
- smoothFactor

This breaks the batch script and you have to re-enter all those conversion parameters every time you want to convert something to JPEGLI despite using a script.
Last edited by Stock on Tue Apr 01, 2025 10:18 am, edited 7 times in total.
User avatar
Stock
Posts: 45
Joined: Wed Oct 12, 2022 3:33 pm

Re: [XnViewMP & XnConvert] JPEGLI is missing crucial conversion settings in batch.xbs

Post by Stock »

Edit: I just noted that I'm describing the same bug as @masterjp
1.8.6 - batch conversion - presets do not save jpeg-li compression quality
User avatar
Stock
Posts: 45
Joined: Wed Oct 12, 2022 3:33 pm

Re: [XnViewMP & XnConvert] JPEGLI is missing crucial conversion settings in batch.xbs

Post by Stock »

XnViewMP 1.8.7 correctly saves jpegli parameters into .xbs now.
However, XnConvert 1.104 is still broken and needs the fix as well.
Post Reply