Browser not showing transparent png files correctly

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
jpage4500
Posts: 12
Joined: Thu Sep 03, 2020 5:40 pm

Browser not showing transparent png files correctly

Post 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)
xnview-thumbnails.png
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
xnview-good-exif.png (42.08 KiB) Viewed 1795 times
xnview-bad-exif.png
xnview-bad-exif.png (38.62 KiB) Viewed 1795 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:
picsee-thumbnails.png
Attachments
xnview-version.png
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 »

please send some samples?
Pierre.
jpage4500
Posts: 12
Joined: Thu Sep 03, 2020 5:40 pm

Re: Browser not showing transparent png files correctly

Post 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
xnview-good-vs-bad.png (36.95 KiB) Viewed 1781 times
GOOD:
device_life360_home.png
device_life360_home.png (17.51 KiB) Viewed 1781 times
BAD:
device_life360_away.png
device_life360_away.png (1.69 KiB) Viewed 1781 times
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 »

jpage4500 wrote: Wed Jul 17, 2024 2:49 pm BAD:
device_life360_away.png
this one in not 32bits
Pierre.
jpage4500
Posts: 12
Joined: Thu Sep 03, 2020 5:40 pm

Re: Browser not showing transparent png files correctly

Post 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
jpage4500
Posts: 12
Joined: Thu Sep 03, 2020 5:40 pm

Re: Browser not showing transparent png files correctly

Post 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
qimgv.png
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.
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.8.0. Please check and confirm the bug fix here.
Pierre.
jpage4500
Posts: 12
Joined: Thu Sep 03, 2020 5:40 pm

Re: Browser not showing transparent png files correctly

Post 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!!
xn2.png
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)
Attachments
xn1.png
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: Browser not showing transparent png files correctly

Post by user0 »

Post Reply