Page 1 of 1
Browser not showing transparent png files correctly
Posted: Tue Jul 16, 2024 5:12 pm
by jpage4500
xnview wrote: Wed Oct 14, 2020 3:37 pm
This problem is supposed to be fixed in
XnView MP 0.97.1. Please check and confirm the bug fix here.
Hi, I know this is an old thread and it's my fault for not checking back for updates (I'll figure out why I'm not getting email notifications next). Anyway, I keep checking every 6 months or so to see if this transparency issue is fixed and see that it's not in the latest version (1.7.2 - mac)
I'm not sure if at this point it's a known issue but if I can help explain it in any way I will. Using the ExifTool window I think I see what's different in images have this problem and the ones that don't. In my case the only difference is the Color Type field. If it's "Pallete" then the transparency isn't visible. If it's "RGB with Alpha" then the transparency is displayed correctly. Both images are 8-bit.

- xnview-good-exif.png (42.08 KiB) Viewed 1797 times

- xnview-bad-exif.png (38.62 KiB) Viewed 1797 times
In my case I don't know why the images have different Color Types but I'd guess this happened when I compressed some of them using a tool like tinypng.com.
I also attached an image of a Mac app called PicSee which displays the transparency just fine:
Re: Browser not showing transparent png files correctly
Posted: Wed Jul 17, 2024 2:31 pm
by xnview
please send some samples?
Re: Browser not showing transparent png files correctly
Posted: Wed Jul 17, 2024 2:49 pm
by jpage4500
xnview wrote: Wed Jul 17, 2024 2:31 pm
please send some samples?
Sorry, I meant to attach a good and bad png image but forgot. I've got lots to choose from but I tried to pick 2 that are as similar as possible with only the "Color Type" as the difference

- xnview-good-vs-bad.png (36.95 KiB) Viewed 1783 times
GOOD:

- device_life360_home.png (17.51 KiB) Viewed 1783 times
BAD:

- device_life360_away.png (1.69 KiB) Viewed 1783 times
Re: Browser not showing transparent png files correctly
Posted: Tue Jul 23, 2024 3:11 pm
by xnview
jpage4500 wrote: Wed Jul 17, 2024 2:49 pm
BAD:
device_life360_away.png
this one in not 32bits
Re: Browser not showing transparent png files correctly
Posted: Tue Jul 23, 2024 3:14 pm
by jpage4500
xnview wrote: Tue Jul 23, 2024 3:11 pm
jpage4500 wrote: Wed Jul 17, 2024 2:49 pm
BAD:
device_life360_away.png
this one in not 32bits
I think they're both 8-bit images
Re: Browser not showing transparent png files correctly
Posted: Tue Jul 23, 2024 3:19 pm
by jpage4500
Another image viewer I'm using that displays transparency just fine with the same set of images is
https://github.com/easymodo/qimgv
Re: Browser not showing transparent png files correctly
Posted: Wed Jul 24, 2024 8:25 am
by xnview

Thanks to your detailed description I can reproduce
the problem.
Re: Browser not showing transparent png files correctly
Posted: Thu Aug 29, 2024 1:24 pm
by xnview
This problem is supposed to be fixed in
XnView MP 1.8.0. Please check and confirm the bug fix here.
Re: Browser not showing transparent png files correctly
Posted: Thu Aug 29, 2024 1:37 pm
by jpage4500
xnview wrote: Thu Aug 29, 2024 1:24 pm
This problem is supposed to be fixed in
XnView MP 1.8.0. Please check and confirm the bug fix here.
it works!!
I do see some of them have black backgrounds and others have gray backgrounds which is a little confusing but at the end of the day I can finally see the image so I'm not complaining!!
FWIW here's an image with a black background in full view -- so it is a transparent background (second attachment)
Re: Browser not showing transparent png files correctly
Posted: Tue Sep 24, 2024 11:55 am
by user0