Forum Moderators: phranque

Message Too Old, No Replies

PNG Images not displaying

         

MrExcel

8:36 am on Aug 24, 2004 (gmt 0)

10+ Year Member



Hi,
I've got a problem I can't understand. I setup a web server on a NT4 SP6a + Apache2 + PHP4 + MYSQL. PHP and Mysql are working fine.
The main problem is that on the localhost I can see all the images, I mean all the html pages are displayed correctely.
If I connect from another PC all pages with PNG images are not diplaying, but pages with GIF are ok.

I think that there is something in httpd.conf I should modify, add, but I don't know what?
Well if anyone got a tip or an idea on what's going wrong, it would be very usefull. This driving me mad as I'm working on it for a 2 days now.

TIA for any help
MrExcel

jdMorgan

1:04 pm on Aug 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



MrExcel,

Welcome to WebmasterWorld!

You may need to add a MIME-type for png, as this is a relatively new format, and the default Apache config may not include it.


AddType image/png .png

If you have a bookmark favicon on your site the same thing can happen, so you might want to add

AddType image/x-icon .ico

as well.

Jim

MrExcel

1:48 pm on Aug 24, 2004 (gmt 0)

10+ Year Member



Hi Jim,

Thanks for the tip. I added the lines but unfortunately it doesn't solve my problem :(

What I can't explain is why this work on the server but not from a PC... (tried with Firefox 0.9 and IE6).

Another try :)

jdMorgan

2:01 pm on Aug 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Examine the image using Tools->Page Info->Media in Firefox, and make sure the MIME-type is now set correctly. It may be that you just need to flush your browser caches now that you have set the MIME-type -- You may well have a copy of the original image without MIME-type cached in each browser.

(Always flush your browser caches after any change to server config)

Jim