techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > General Software

Reply
 
Thread Tools
Old Dec 22, 2012, 07:38 PM   #1
OnePostWonder
200 Posts
 
Join Date: Dec 2008
Posts: 486 (0.30/day)
Thanks: 61
Thanked 90 Times in 71 Posts

System Specs

PNGs not displaying correctly

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 by OnePostWonder; Dec 23, 2012 at 06:44 PM.
OnePostWonder is offline  
Reply With Quote
Old Dec 22, 2012, 07:42 PM   #2
sneekypeet
Unpaid Babysitter
 
sneekypeet's Avatar
 
Join Date: Apr 2006
Posts: 19,004 (7.31/day)
Thanks: 3,035
Thanked 5,487 Times in 3,950 Posts

System Specs

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)
__________________
Hers: ASUS Maximus V Gene / i7 3770K / Swiftech H220 / 4X8GB Corsair Dominators / ASUS GTX660 / Corsair AX-760 / Windows 7 64bit / Fractal Design ARC Midi R2

Test: Gigabyte Z68X-UD4-B3 / i7 2600K / A lot Of Coolers / Ripjaws Currently / HIS HD7950 IceQ Turbo / Silverstone SST-ST85F-G / Windows 7 64bit / InWin D-Frame Limited Edition
sneekypeet is online now  
Reply With Quote
Old Dec 22, 2012, 08:25 PM   #3
OnePostWonder
200 Posts
 
Join Date: Dec 2008
Posts: 486 (0.30/day)
Thanks: 61
Thanked 90 Times in 71 Posts

System Specs

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 by OnePostWonder; Dec 22, 2012 at 08:30 PM.
OnePostWonder is offline  
Reply With Quote
Old Dec 23, 2012, 12:13 PM   #4
Vinska
200 Posts
 
Vinska's Avatar
 
Join Date: Jul 2011
Location: Kaunas, Lithuania
Posts: 457 (0.68/day)
Thanks: 292
Thanked 196 Times in 120 Posts
Send a message via Skype™ to Vinska

System Specs

Hint: What is Your default background fill color for transparent images in irfanview?
__________________
Why do you wear glasses if you're deaf?
Code:
while (1) {
	alone();
}
Vinska is offline  
Crunching for Team TPU
Reply With Quote
The Following 2 Users Say Thank You to Vinska For This Useful Post:
Old Dec 23, 2012, 12:25 PM   #5
Aquinus
3500 Posts
 
Aquinus's Avatar
 
Join Date: Jan 2012
Location: Dover, New Hampshire, USA
Posts: 4,257 (8.86/day)
Thanks: 1,274
Thanked 1,326 Times in 984 Posts

System Specs

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.
__________________
MyHeat
Aquinus is offline  
Crunching for Team TPU
Reply With Quote
The Following 2 Users Say Thank You to Aquinus For This Useful Post:
Old Dec 23, 2012, 12:46 PM   #6
animal007uk
1000 Posts
 
Join Date: Feb 2009
Location: Warwick, Warwickshire, England
Posts: 1,089 (0.70/day)
Thanks: 226
Thanked 226 Times in 189 Posts
Send a message via MSN to animal007uk

System Specs

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.
animal007uk is offline  
Reply With Quote
Old Dec 23, 2012, 12:53 PM   #7
Vinska
200 Posts
 
Vinska's Avatar
 
Join Date: Jul 2011
Location: Kaunas, Lithuania
Posts: 457 (0.68/day)
Thanks: 292
Thanked 196 Times in 120 Posts
Send a message via Skype™ to Vinska

System Specs

Quote:
Originally Posted by animal007uk View Post
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)
__________________
Why do you wear glasses if you're deaf?
Code:
while (1) {
	alone();
}
Vinska is offline  
Crunching for Team TPU
Reply With Quote
Old Dec 23, 2012, 06:46 PM   #8
OnePostWonder
200 Posts
 
Join Date: Dec 2008
Posts: 486 (0.30/day)
Thanks: 61
Thanked 90 Times in 71 Posts

System Specs

Quote:
Originally Posted by Vinska View Post
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

Quote:
Originally Posted by Aquinus View Post
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 by OnePostWonder; Dec 23, 2012 at 07:04 PM.
OnePostWonder is offline  
Reply With Quote
Old Dec 23, 2012, 07:12 PM   #9
OnePostWonder
200 Posts
 
Join Date: Dec 2008
Posts: 486 (0.30/day)
Thanks: 61
Thanked 90 Times in 71 Posts

System Specs

I'm still having trouble with images in Firefox.

Slickdeals

The attached PNG on that page displays like this:

OnePostWonder is offline  
Reply With Quote
Old Dec 27, 2012, 12:59 AM   #10
OnePostWonder
200 Posts
 
Join Date: Dec 2008
Posts: 486 (0.30/day)
Thanks: 61
Thanked 90 Times in 71 Posts

System Specs

Removing IrfanView didn't do anything for Firefox, though I didn't really expect it to.
OnePostWonder is offline  
Reply With Quote
Old Dec 28, 2012, 01:36 AM   #11
OnePostWonder
200 Posts
 
Join Date: Dec 2008
Posts: 486 (0.30/day)
Thanks: 61
Thanked 90 Times in 71 Posts

System Specs

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.
OnePostWonder is offline  
Reply With Quote
Old Dec 28, 2012, 07:59 AM   #12
animal007uk
1000 Posts
 
Join Date: Feb 2009
Location: Warwick, Warwickshire, England
Posts: 1,089 (0.70/day)
Thanks: 226
Thanked 226 Times in 189 Posts
Send a message via MSN to animal007uk

System Specs

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.

animal007uk is offline  
Reply With Quote
Old Dec 28, 2012, 08:17 AM   #13
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.28/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts

System Specs

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.
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is offline  
Crunching for Team TPU
Reply With Quote
Old Dec 29, 2012, 12:57 AM   #14
OnePostWonder
200 Posts
 
Join Date: Dec 2008
Posts: 486 (0.30/day)
Thanks: 61
Thanked 90 Times in 71 Posts

System Specs

Quote:
Originally Posted by FordGT90Concept View Post
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.
OnePostWonder is offline  
Reply With Quote
Old Dec 29, 2012, 01:34 AM   #15
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.28/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts

System Specs

I have no idea without looking at it. All I know is that heavy reliance on Javascript is begging for cross-browser incapabilities.
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }
FordGT90Concept is offline  
Crunching for Team TPU
Reply With Quote
Old Dec 29, 2012, 02:05 AM   #16
OnePostWonder
200 Posts
 
Join Date: Dec 2008
Posts: 486 (0.30/day)
Thanks: 61
Thanked 90 Times in 71 Posts

System Specs

Quote:
Originally Posted by FordGT90Concept View Post
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?
OnePostWonder is offline  
Reply With Quote
Old Dec 29, 2012, 02:09 AM   #17
FordGT90Concept
"I go fast!1!11!1!"
 
FordGT90Concept's Avatar
 
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.28/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts

System Specs

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.
__________________
Golden Rule of Programming: Never assume.

try { SteamDownload(); }
catch (Steamception ex) { RageQuit(); }

Last edited by FordGT90Concept; Dec 29, 2012 at 02:21 AM.
FordGT90Concept is offline  
Crunching for Team TPU
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is GPU-Z displaying my memory usage correctly? Black Panther GPU-Z 30 Dec 24, 2011 03:31 PM
4650 Not Displaying 1080p Properly On TV DaveK AMD / ATI 4 Aug 9, 2009 12:38 AM
Memory - Real vs. Effective - Not Displaying Correctly DBACPhoenix ATITool 4 Nov 7, 2007 04:09 PM
Problems with displaying my PC on my TV correctly m1keh4wk General Hardware 1 Aug 29, 2007 11:08 PM
Dead to rights...not displaying! Kammster Games 0 Jul 5, 2007 03:02 PM


All times are GMT. The time now is 04:48 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts