Browser not showing transparent png files correctly

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
null_subject
Posts: 9
Joined: Sun Mar 06, 2022 9:20 pm

Browser not showing transparent png files correctly

Post by null_subject »

Apologies for resurrecting an older thread, but I'm experiencing a very similar problem. I thought necromancy preferable to starting a new thread devoid of potential additional context. On my end, I've narrowed the issue down to using a lossy compression for the thumbnail cache (I've tested webp, and jpeg high). Whenever a lossy format is selected, the png background turns white.

WEBP <--------------------------------------THUMBNAIL COMPRESSION-------------------------------------> ZIP
Image Image

Weirdly, transparency seems to work with lossy compression when copying a png to a new location, but upon refresh, the background turns white. This could be due to the app defaulting to lossless when first moving a file, or it could be a lead. Repeatable steps: start using webp compression, create folder, paste .png in it, alpha should work immediately after pasting, browse to a different folder and back, see that alpha is broken, set compression to zip, rebuild folder cache, see that it works even after folder change, change to webp, rebuild, see that alpha is broken again.

To my eyes, this is obviously a bug, and not a configuration mistake on my end, so I won't ask for a workaround. I doubt this is linked to whatever bug relating to the border size you found back in 2020. Here's the exact .png used in my testing, and not that it should matter, but I was using a thumbnail size of 800x800 the entire time.

Any chance of getting this looked at, officially?

Merci pour le merveilleux logiciel, et tout le travail qu'il nécessite.

[EDIT] xnview.ini: https://paste-bin.xyz/41933
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Browser not showing transparent png files correctly

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
null_subject
Posts: 9
Joined: Sun Mar 06, 2022 9:20 pm

Re: Browser not showing transparent png files correctly

Post by null_subject »

Perfect, I'm glad I could be of some small help!
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Browser not showing transparent png files correctly

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.00 beta. Please check and confirm the bug fix here.
Pierre.
null_subject
Posts: 9
Joined: Sun Mar 06, 2022 9:20 pm

Re: Browser not showing transparent png files correctly

Post by null_subject »

xnview wrote: Mon Mar 28, 2022 10:21 am This problem is supposed to be fixed in XnView MP 1.00 beta. Please check and confirm the bug fix here.
I can confirm this issue has been fixed.
Post Reply