1.4.2 - batch convert - Border's Shadow incorrect size

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

1.4.2 - batch convert - Border's Shadow incorrect size

Post by user0 »

XnViewMP 1.4.2 64bits
Windows11 64bit (22H2), display resolution 3840x2160, win scaling 150%


Batch convert
Border's Shadow effect has incorrect size on test file
test_image.zip
(939 Bytes) Downloaded 75 times
batch_convert_Border_Shadow_size.png
ckit
XnThusiast
Posts: 2583
Joined: Tue Feb 17, 2004 1:11 am
Location: QLD, Australia
Contact:

Re: 1.4.2 - batch convert - Border's Shadow incorrect size

Post by ckit »

Confirmed.
AMD Ryzen 3 3300X 3.8Ghz, 16Gb DDR4, RX6600XT with Dell U2520D at 2560x1440@60Hz scaling 125%
Win11 x64 24H2, Hard Disk Sentinel Pro, MS PowerToys, Process Lasso Pro and Wintoys
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: 1.4.2 - batch convert - Border's Shadow incorrect size

Post by winnylinny »

It appears that certain types of PNG mess up this effect?

Here's what resulted on my tests:


Works
Using random PNGs, WEBPs, and JPEGs in my personal library


Broken
Using your sample PNG image


Broken
Resaving your sample PNG image as a new PNG image


Works
Saving your sample PNG image as a WEBP or JPEG image


Works
Using the converted WEBP/JPEG image and converting it back into a PNG image


It's really weird. I couldn't figure out if there's any metadata or property of the original PNG that breaks this effect?
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: 1.4.2 - batch convert - Border's Shadow incorrect size

Post by winnylinny »

@user0, I think I figured it out.

After some further testing, I narrowed it down to 32-bit PNGs

The effect works fine with 24-bit PNGs.

The bug occurs if it is a 32-bit PNG.

Perhaps this effect has an issue with the extra 8-bit "transparency" (alpha) channel.
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: 1.4.2 - batch convert - Border's Shadow incorrect size

Post by user0 »

thanks for digging it up 👍
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.2 - batch convert - Border's Shadow incorrect size

Post by xnview »

See issue for current status and some details.
Pierre.
User avatar
winnylinny
Posts: 167
Joined: Fri Apr 17, 2020 5:35 pm

Re: 1.4.2 - batch convert - Border's Shadow incorrect size

Post by winnylinny »

Awesome, Peirre! :mrgreen:
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.2 - batch convert - Border's Shadow incorrect size

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.4.3. Please check and confirm the bug fix here.
Pierre.
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: 1.4.2 - batch convert - Border's Shadow incorrect size

Post by user0 »

fixed in 1.4.3
Post Reply