Quick question about PNGs

Associate
Joined
29 May 2003
Posts
2,038
Location
Cambridge
Came across a situation during the week that had me totally stumped:

I'd just added an icon to a page, a 16 x 16 pixel PNG. When I browsed the page locally off my hard disk, the icon showed up fine. Thinking that was it sussed, I uploaded the page and the folder containing the icons to the server.

When browsing the page off the server, the icon refused to display - the folder of icons was on the server and the page was definitely the up-to-date one as when I viewed source, there was the appropriate <img> tag in the code.

Any ideas what would cause that?
 
completely unrelated, but there's an error on your blog. was trying to get to comments and you've got an unexpected curly brace :)
 
I'd guess that the webserver isn't sending the correct MIME type for the image.

If you get the 'Web developer' extension for Firefox... goto the URL of the image in question, select Information->View Response Headers and look for the value of "Content-type".

It should be "image/png"; if it is, then maybe theres something wrong with the image, if it isn't, then complain to the server admin.
 
Sic said:
completely unrelated, but there's an error on your blog. was trying to get to comments and you've got an unexpected curly brace :)
Oooops - will check that out later. Probably don't use my blog as much as I should ... I mainly use it for ranting about things that **** me off - very therapeutic in that regard :D ... not very constructive use of technology though :rolleyes:

EDIT: Couldn't see anything obviously wrong with the comments.php file, so I've opted for a more dramatic fix and switched themes to the rather gorgeous Hemingway ...
 
Last edited:
matja said:
I'd guess that the webserver isn't sending the correct MIME type for the image.

If you get the 'Web developer' extension for Firefox... goto the URL of the image in question, select Information->View Response Headers and look for the value of "Content-type".

It should be "image/png"; if it is, then maybe theres something wrong with the image, if it isn't, then complain to the server admin.
I don't think I've got the files with me at home - it was something I was doing at work earlier this week - but if I have I'll check with the WD extension. I do have this installed in FF, but it didn't cross my mind to see if it showed anything ... thanks for the pointer :)
 
Back
Top Bottom