• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

PNGs not displaying correctly

Joined
Dec 27, 2008
Messages
587 (0.10/day)
System Name PC
Processor i5 2500k
Motherboard P8Z68-V PRO/GEN3
Cooling Fans
Memory DDR3-1600 (8GB)
Video Card(s) Sapphire Nitro+ RX 580
Storage HD103SJ
Display(s) XG2402
Case Xigmatek Midgard II
Power Supply PC Power & Cooling Silencer 750W
I noticed this issue a couple days ago.

Using this page as an example:

Slickdeals EDIT: Mods over at Slickdeals edited this post because it didn't fit the rules. Also, the OP's link broke, so no attached images.

The second and fourth images (from left to right) are PNGs. The second image does not display anything (because the text is black and all whitespace is black), while the fourth image only shows red/orange arrows and what's contained within.

I've also found a couple PNGs on my computer don't display properly in IrfanView, but display just fine in Windows Photo Viewer. Also, while the thumbnails of those images display properly in Firefox, when saved to my computer the thumbnails show how IrfanView will display them. If I highlight the image that is completely black (second image), it accents the text in the thumbnail.

So far I've tried:

Running Firefox without add-ons.
Rebuilding the Icon Cache.
Changing the default image viewer for PNGs from IrfanView to Windows Photo Viewer.

Thanks in advance.

EDIT: Added screenshot.

 
Last edited:

sneekypeet

Retired Super Moderator
Joined
Apr 12, 2006
Messages
29,409 (4.47/day)
System Name EVA-01
Processor Intel i7 13700K
Motherboard Asus ROG Maximus Z690 HERO EVA Edition
Cooling ASUS ROG Ryujin III 360 with Noctua Industrial Fans
Memory PAtriot Viper Elite RGB 96GB @ 6000MHz.
Video Card(s) Asus ROG Strix GeForce RTX 3090 24GB OC EVA Edition
Storage Addlink S95 M.2 PCIe GEN 4x4 2TB
Display(s) Asus ROG SWIFT OLED PG42UQ
Case Thermaltake Core P3 TG
Audio Device(s) Realtek on board > Sony Receiver > Cerwin Vegas
Power Supply be quiet DARK POWER PRO 12 1500W
Mouse ROG STRIX Impact Electro Punk
Keyboard ROG STRIX Scope TKL Electro Punk
Software Windows 11
what if you use windows photo viewer to open them. I went to the link and the four images show in thumbnail as well as full size for me, assuming you are speaking of these... (oops saved as .png)
 
Joined
Dec 27, 2008
Messages
587 (0.10/day)
System Name PC
Processor i5 2500k
Motherboard P8Z68-V PRO/GEN3
Cooling Fans
Memory DDR3-1600 (8GB)
Video Card(s) Sapphire Nitro+ RX 580
Storage HD103SJ
Display(s) XG2402
Case Xigmatek Midgard II
Power Supply PC Power & Cooling Silencer 750W
Sorry, when I was writing "Windows Preview" I meant to be writing Windows Photo Viewer; it opens them just fine. I'm going to check and see how IE behaves.

I'm also going to attach a screenshot to give people a better idea what I'm talking about.
 
Last edited:
Joined
Jul 23, 2011
Messages
1,586 (0.34/day)
Location
Kaunas, Lithuania
System Name my box
Processor AMD Ryzen 9 5950X
Motherboard ASRock Taichi x470 Ultimate
Cooling NZXT Kraken x72
Memory 2×16GiB @ 3200MHz, some Corsair RGB led meme crap
Video Card(s) AMD [ASUS ROG STRIX] Radeon RX Vega64 [OC Edition]
Storage Samsung 970 Pro && 2× Seagate IronWolf Pro 4TB in Raid 1
Display(s) Asus VG278H + Asus VH226H
Case Fractal Design Define R6 Black TG
Audio Device(s) Using optical S/PDIF output lol
Power Supply Corsair AX1200i
Mouse Razer Naga Epic
Keyboard Keychron Q1
Software Funtoo Linux
Benchmark Scores 217634.24 BogoMIPS
Hint: What is Your default background fill color for transparent images in irfanview?
 

Aquinus

Resident Wat-man
Joined
Jan 28, 2012
Messages
13,147 (2.94/day)
Location
Concord, NH, USA
System Name Apollo
Processor Intel Core i9 9880H
Motherboard Some proprietary Apple thing.
Memory 64GB DDR4-2667
Video Card(s) AMD Radeon Pro 5600M, 8GB HBM2
Storage 1TB Apple NVMe, 4TB External
Display(s) Laptop @ 3072x1920 + 2x LG 5k Ultrafine TB3 displays
Case MacBook Pro (16", 2019)
Audio Device(s) AirPods Pro, Sennheiser HD 380s w/ FIIO Alpen 2, or Logitech 2.1 Speakers
Power Supply 96w Power Adapter
Mouse Logitech MX Master 3
Keyboard Logitech G915, GL Clicky
Software MacOS 12.1
Your background is transparent, so on a black background you're not going to see the text. This isn't a complex problem, don't over-think it. If you can save it as a JPEG and it views fine, it is definitely a transparent background as JPEG doesn't support transparency and usually defaults to white.
 
Joined
Feb 19, 2009
Messages
1,829 (0.33/day)
Location
UK Warwickshire
System Name PC-Chips
Processor Ryzen 5 5600x
Motherboard Asus ROG Strix B550-F Gaming.
Cooling Thermalright Peerless Assassin 120 SE CPU Air Cooler 6 heat pipes.
Memory Patriot Viper 32gig dual channel 3600mhz
Video Card(s) PowerColor HellHound RX 7900 GRE OC
Storage 2X Samsung 860 EVO SSD's 500gig / 2TB crucial P3-NVME / WD-BLUE SN550 1TB M.2 / SP A55 512gig
Display(s) Panasonic 40-inch 4k TV
Case Modded NZXT H510
Audio Device(s) Realtek S1220A - Yamaha A-S501 AMP - 4 x Wharfedale diamond 9.1 speakers - Wharfedale SW150 sub
Power Supply EVGA SuperNOVA G6 750W 80+ Gold
Mouse Some cheap wireless thing
Keyboard Razer Cynosa lite
VR HMD Oculus Quest 2 128gig version
Software Windows 11 pro 64bit
Aquinus is right about this, I did a test lastnight to and its defo down to transparency.
I have a black background but when i change it to say blue i can just make out the pictures background.
 
Joined
Jul 23, 2011
Messages
1,586 (0.34/day)
Location
Kaunas, Lithuania
System Name my box
Processor AMD Ryzen 9 5950X
Motherboard ASRock Taichi x470 Ultimate
Cooling NZXT Kraken x72
Memory 2×16GiB @ 3200MHz, some Corsair RGB led meme crap
Video Card(s) AMD [ASUS ROG STRIX] Radeon RX Vega64 [OC Edition]
Storage Samsung 970 Pro && 2× Seagate IronWolf Pro 4TB in Raid 1
Display(s) Asus VG278H + Asus VH226H
Case Fractal Design Define R6 Black TG
Audio Device(s) Using optical S/PDIF output lol
Power Supply Corsair AX1200i
Mouse Razer Naga Epic
Keyboard Keychron Q1
Software Funtoo Linux
Benchmark Scores 217634.24 BogoMIPS
Aquinus is right about this, I did a test lastnight to and its defo down to transparency.
I have a black background but when i change it to say blue i can just make out the pictures background.

I'd suggest using setting either white or a checkered one (this also lets You easily see what images uses transparency. While using simply white looks a bit better most of the time, but lacks the benefit of quickly identifying transparency)
 
Joined
Dec 27, 2008
Messages
587 (0.10/day)
System Name PC
Processor i5 2500k
Motherboard P8Z68-V PRO/GEN3
Cooling Fans
Memory DDR3-1600 (8GB)
Video Card(s) Sapphire Nitro+ RX 580
Storage HD103SJ
Display(s) XG2402
Case Xigmatek Midgard II
Power Supply PC Power & Cooling Silencer 750W
Hint: What is Your default background fill color for transparent images in irfanview?

Funny enough, when I was searching around the web for this issue, I came across this. It's found under Options -> Properties/Settings -> Viewing and called "Main window color". I gave that a try, and when I did it just changed the window color surrounding the image.

Well, I gave it a try again today, this time closing the file and reopening it, and it changed the transparency to white. So thanks for compelling me to give it another go :)

Your background is transparent, so on a black background you're not going to see the text. This isn't a complex problem, don't over-think it. If you can save it as a JPEG and it views fine, it is definitely a transparent background as JPEG doesn't support transparency and usually defaults to white.

I know JPEG doesn't support transparency and that it had something to do with the PNGs transparency, but it seemed as if it just suddenly started happening and that the images displayed just fine before. I still need to look around and find a similar scenario to the one I was first experiencing in Firefox to see if all is well. I'd be surprised if it was; I don't think I've integrated IrfanView to Firefox in anyway.
 
Last edited:
Joined
Dec 27, 2008
Messages
587 (0.10/day)
System Name PC
Processor i5 2500k
Motherboard P8Z68-V PRO/GEN3
Cooling Fans
Memory DDR3-1600 (8GB)
Video Card(s) Sapphire Nitro+ RX 580
Storage HD103SJ
Display(s) XG2402
Case Xigmatek Midgard II
Power Supply PC Power & Cooling Silencer 750W
I'm still having trouble with images in Firefox.

Slickdeals

The attached PNG on that page displays like this:

 
Joined
Dec 27, 2008
Messages
587 (0.10/day)
System Name PC
Processor i5 2500k
Motherboard P8Z68-V PRO/GEN3
Cooling Fans
Memory DDR3-1600 (8GB)
Video Card(s) Sapphire Nitro+ RX 580
Storage HD103SJ
Display(s) XG2402
Case Xigmatek Midgard II
Power Supply PC Power & Cooling Silencer 750W
Removing IrfanView didn't do anything for Firefox, though I didn't really expect it to.
 
Joined
Dec 27, 2008
Messages
587 (0.10/day)
System Name PC
Processor i5 2500k
Motherboard P8Z68-V PRO/GEN3
Cooling Fans
Memory DDR3-1600 (8GB)
Video Card(s) Sapphire Nitro+ RX 580
Storage HD103SJ
Display(s) XG2402
Case Xigmatek Midgard II
Power Supply PC Power & Cooling Silencer 750W
Would it be possible others post what they're seeing when they click the attached image on the Slickdeals page? I'd really appreciate it.
 
Joined
Feb 19, 2009
Messages
1,829 (0.33/day)
Location
UK Warwickshire
System Name PC-Chips
Processor Ryzen 5 5600x
Motherboard Asus ROG Strix B550-F Gaming.
Cooling Thermalright Peerless Assassin 120 SE CPU Air Cooler 6 heat pipes.
Memory Patriot Viper 32gig dual channel 3600mhz
Video Card(s) PowerColor HellHound RX 7900 GRE OC
Storage 2X Samsung 860 EVO SSD's 500gig / 2TB crucial P3-NVME / WD-BLUE SN550 1TB M.2 / SP A55 512gig
Display(s) Panasonic 40-inch 4k TV
Case Modded NZXT H510
Audio Device(s) Realtek S1220A - Yamaha A-S501 AMP - 4 x Wharfedale diamond 9.1 speakers - Wharfedale SW150 sub
Power Supply EVGA SuperNOVA G6 750W 80+ Gold
Mouse Some cheap wireless thing
Keyboard Razer Cynosa lite
VR HMD Oculus Quest 2 128gig version
Software Windows 11 pro 64bit
Well the pics open for me in a new tab and show as they should (Firefox here) i do not use addons or anything either.

 

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
26,259 (4.63/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
That's a problem with transparency. Instead letting the true background color through, it is substituting black. I have no idea what would cause a defect like that.

Edit: Actually, it's probably the website. They use black backgrounds for all images instead of leaving it transparent.
 
Joined
Dec 27, 2008
Messages
587 (0.10/day)
System Name PC
Processor i5 2500k
Motherboard P8Z68-V PRO/GEN3
Cooling Fans
Memory DDR3-1600 (8GB)
Video Card(s) Sapphire Nitro+ RX 580
Storage HD103SJ
Display(s) XG2402
Case Xigmatek Midgard II
Power Supply PC Power & Cooling Silencer 750W
That's a problem with transparency. Instead letting the true background color through, it is substituting black. I have no idea what would cause a defect like that.

Edit: Actually, it's probably the website. They use black backgrounds for all images instead of leaving it transparent.

Thanks for the info you added in the edit. That's another piece to the puzzle.

Is it written in the vBulletin_Lightbox Javascript to use black backgrounds? Also, do you have any idea why others' browsers isn't making use of the Lightbox script?

I've had people restart Firefox without add-ons and make sure scripts are enabled, but it still automatically goes to what I believe is called the overlay page.
 

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
26,259 (4.63/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
I have no idea without looking at it. All I know is that heavy reliance on Javascript is begging for cross-browser incapabilities.
 
Joined
Dec 27, 2008
Messages
587 (0.10/day)
System Name PC
Processor i5 2500k
Motherboard P8Z68-V PRO/GEN3
Cooling Fans
Memory DDR3-1600 (8GB)
Video Card(s) Sapphire Nitro+ RX 580
Storage HD103SJ
Display(s) XG2402
Case Xigmatek Midgard II
Power Supply PC Power & Cooling Silencer 750W
I have no idea without looking at it. All I know is that heavy reliance on Javascript is begging for cross-browser incapabilities.

Oh, when you said they use black backgrounds for all the images, you mean that you simply browsed through a couple different pages and looked at their attached thumbnails?
 

FordGT90Concept

"I go fast!1!11!1!"
Joined
Oct 13, 2008
Messages
26,259 (4.63/day)
Location
IA, USA
System Name BY-2021
Processor AMD Ryzen 7 5800X (65w eco profile)
Motherboard MSI B550 Gaming Plus
Cooling Scythe Mugen (rev 5)
Memory 2 x Kingston HyperX DDR4-3200 32 GiB
Video Card(s) AMD Radeon RX 7900 XT
Storage Samsung 980 Pro, Seagate Exos X20 TB 7200 RPM
Display(s) Nixeus NX-EDG274K (3840x2160@144 DP) + Samsung SyncMaster 906BW (1440x900@60 HDMI-DVI)
Case Coolermaster HAF 932 w/ USB 3.0 5.25" bay + USB 3.2 (A+C) 3.5" bay
Audio Device(s) Realtek ALC1150, Micca OriGen+
Power Supply Enermax Platimax 850w
Mouse Nixeus REVEL-X
Keyboard Tesoro Excalibur
Software Windows 10 Home 64-bit
Benchmark Scores Faster than the tortoise; slower than the hare.
No... what you're seeing is a black behind a transparent PNG. The pictures that look fine could simply have no transparency so you don't see the black behind it.



This guide might help you change the default background color:
http://kb.iu.edu/data/algz.html

Set it to white.
 
Last edited:
Top