Reported bugs that have been closed and/or resolved
Moderators: helmut , XnTriq , xnview , Dreamer
Zeus
Posts: 5 Joined: Wed Dec 28, 2022 1:56 pm
Post
by Zeus » Wed Dec 28, 2022 2:26 pm
XnView MP MacOSX
Version 1.4.0 64bits (Dec 13 2022)
macOS 13.0.1
Selecting a preset for the
Batch Convert doesn't apply the percentages saved in the XBS file for
Canvas resize width and height.
When I select a preset with the Canvas resize as below, XnViewMP is always reverting to
0.00% instead of
117.24%
Code: Select all
<Canvas_resize mode="0" width="117.24" height="117.24" unit="1" relative="false" ratio="true" orientation="false" color="#ffffff" colorFlag="true" colorAt="0" alpha="255" position="4"/>
Zeus
Posts: 5 Joined: Wed Dec 28, 2022 1:56 pm
Post
by Zeus » Wed Dec 28, 2022 6:56 pm
After some testing, it seems this bug is reproduced when decimal digits are used in the percentage.
To reproduce:
Actions Tab > Add action > Image > Canvas resize
Set Width and Height to "100.10%"
Save preset (test preset)
Select any other preset from the Preset dropdown, and select back the test preset
Expected behaviour: Width and Height are set to the saved percentage "100.10%"
Effect: Width and Height are set to "0.00%" and the saved XBS looks like the below with "width2", "width3"...
Code: Select all
<?xml version="1.0" encoding="UTF-8"?><XnView_script version="1.0" name="1.4.0 Canvas resize testing">
<Canvas_resize mode="0" width="800" height="600" width2="100.1" height2="100.1" width3="1" height3="1" unit="1" relative="false" ratio="true" orientation="false" color="#ffffff" colorFlag="true" colorAt="0" alpha="255" position="4"/>
<Output folder="" filename="{Filename}" case="0" startIndex="1" format="">
<Options overwrite="0" orgDate="false" keepMeta="true" keepICC="false" keepFolder="false" keepParentFolder="false" keepExtension="false" delOrg="false" multipage="false" allPages="false" openExplorer="false" beep="true" openBrowser="false" clearItems="false"/>
<JPEG quality="85" progressive="false" optimizeHuffman="true" rebuildThumb="true" orgQuality="false" DCTMethod="0" subSampling="0" smoothFactor="0"/>
<TGA compress="false" bottomUp="false"/>
<TIFF compress="0" quality="80" compressBW="0" oneStrip="false"/>
<BMP compress="false" hdrOS2="false"/>
<PNG level="6" interlaced="false" filter="0"/>
<GIF interlaced="false" hdr87a="false"/>
<PCX compress="false"/>
<WEBP method="0" quality="80" filesize="128" compress="4" strength="60" sharpness="0" preset="0"/>
<GUETZLI/>
<JP2 mode="0" quality="80" ratio="4" fileSize="100"/>
<PDF compress="0" compressGrey="0" compressBW="0" quality="80"/>
<JXR quality="80" colorFormat="0" filter="0"/>
<JPEGXL quality="80" lossless="true" effort="7"/>
<HEIC quality="80"/>
<FORMATS_SETTINGS keepEXIF="true" keepICC="true" keepIPTC="true" keepXMP="true"/>
</Output>
</XnView_script>
xnview
Author of XnView
Posts: 46235 Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:
Post
by xnview » Sat Dec 31, 2022 8:04 am
Thanks to your detailed description I can reproduce
the problem .
Pierre.
xnview
Author of XnView
Posts: 46235 Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:
Post
by xnview » Mon Jan 16, 2023 12:34 pm
This problem is supposed to be fixed in
XnView MP 1.4.1 . Please check and confirm the bug fix here.
Pierre.
Zeus
Posts: 5 Joined: Wed Dec 28, 2022 1:56 pm
Post
by Zeus » Tue Jan 17, 2023 8:32 am
1.4.1 installed
OLD XBS
Still, when I select the same old preset (created with the width and height containing decimals), the width and height fields are set to
0.00% :
Code: Select all
<Canvas_resize mode="0" width="117.24" height="117.24" unit="1" relative="false" ratio="true" orientation="false" color="#ffffff" colorFlag="true" colorAt="0" alpha="255" position="4"/>
NEW XBS
When I recreate the preset in 1.4.1 and use it, the width and height fields are set correctly with the decimals:
Code: Select all
<Canvas_resize mode="0" width="0" height="0" width2="117.24" height2="117.24" width3="0" height3="0" unit="1" relative="false" ratio="true" orientation="false" color="#ffffff" colorFlag="true" colorAt="0" alpha="255" position="4"/>