Some PNGs not working in browser?

What do you want to see here? Some more categories, forums, and mods? Hmm...
Post Reply
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Some PNGs not working in browser?

Post by dlh »

From: http://forums.armagetronad.net/viewtopi ... 4001#34001

I try opening the image in my browser (Safari), but it does not work. I have to download the attachment to look at it.

It works in Firefox. Anyone else using Safari having this problem? Oddly other png images work fine (from this thread)

They are all being sent as application/octet-stream, a generic mime-type. Is phpbb butchering these images (like with animated GIF previews)?
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6711
Joined: Thu Dec 18, 2003 7:03 pm

Post by Tank Program »

Could be, but it works fine here...
Image
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Post by Jonathan »

The headers. Thank you telnet. :)

Doesn't work:

Code: Select all

GET /download.php?id=1723 HTTP/1.1
Host: forums.armagetronad.net
Connection: close

HTTP/1.1 200 OK
Date: Mon, 10 Oct 2005 18:18:14 GMT
Server: Apache/2.0.48 (Unix) PHP/4.3.4
X-Powered-By: PHP/4.3.4
Set-Cookie: armagetronforums_data=a%3A0%3A%7B%7D; expires=Tue, 10-Oct-2006 18:18:24 GMT; path=/; domain=forums.armagetronad.net
Set-Cookie: armagetronforums_sid=b44e60e18dca84d8cf3278003bca4efc; path=/; domain=forums.armagetronad.net
Pragma: public
Content-Transfer-Encoding: none
Content-Disposition: inline; filename="BludFort.png"
Content-length: 15116
Content-Type: image/x-png; name="BludFort.png"

<INSERT DATA HERE>
Works:

Code: Select all

GET /download.php?id=1650 HTTP/1.1
Host: forums.armagetronad.net
Connection: close

HTTP/1.1 200 OK
Date: Mon, 10 Oct 2005 18:24:48 GMT
Server: Apache/2.0.48 (Unix) PHP/4.3.4
X-Powered-By: PHP/4.3.4
Set-Cookie: armagetronforums_data=a%3A0%3A%7B%7D; expires=Tue, 10-Oct-2006 18:24:57 GMT; path=/; domain=forums.armagetronad.net
Set-Cookie: armagetronforums_sid=3b9cfa503fdf5961517489a7d7501e01; path=/; domain=forums.armagetronad.net
Pragma: public
Content-Transfer-Encoding: none
Content-Disposition: inline; filename="quick1.png"
Content-length: 25076
Content-Type: image/png; name="quick1.png"

<INSERT DATA HERE>
Looks like it doesn't like image/x-png.
ˌɑrməˈɡɛˌtrɑn
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

Its not a bug in webkit, Camino displays the image. :|

Edit: camino doesn't use webkit. oops.
User avatar
Phytotron
Formerly Oscilloscope
Posts: 5041
Joined: Thu Jun 09, 2005 10:06 pm
Location: A site or situation, especially considered in regard to its surroundings.
Contact:

Post by Phytotron »

They show up for me, and I use Safari 1.0.3.
User avatar
iceman
Reverse Adjust Outside Corner Grinder
Posts: 2448
Joined: Fri Jan 09, 2004 9:54 am
Location: Yorkshire, England. Quote: Its the fumes, they make one want to play
Contact:

Post by iceman »

works for me in firefox but I really hate pngs ... well not pngs but the fact that most people post em without compression which is a real memory hog
Image He who laughs last, probably has a back-up
Image
Image
sorry about the large animated gif
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Post by Jonathan »

Usually they're posted with compression, but not very good compression. How is it a memory hog?!?
ˌɑrməˈɡɛˌtrɑn
User avatar
iceman
Reverse Adjust Outside Corner Grinder
Posts: 2448
Joined: Fri Jan 09, 2004 9:54 am
Location: Yorkshire, England. Quote: Its the fumes, they make one want to play
Contact:

Post by iceman »

coz I only have 128mb ram :lol:
Image He who laughs last, probably has a back-up
Image
Image
sorry about the large animated gif
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Post by Jonathan »

128 MB is more than enough. A typical 800x600 screenshot needs maybe 1.6 MiB. That's 1406.25 KiB of raw data needed for viewing (irrelevant, since it's needed for other formats as well), and the compressed version of 230 KiB. If it compresses to 600 KiB for some reason, the total is still under 2 MiB.
ˌɑrməˈɡɛˌtrɑn
User avatar
iceman
Reverse Adjust Outside Corner Grinder
Posts: 2448
Joined: Fri Jan 09, 2004 9:54 am
Location: Yorkshire, England. Quote: Its the fumes, they make one want to play
Contact:

Post by iceman »

maybe I should turn virtual memory back on :lol:
Image He who laughs last, probably has a back-up
Image
Image
sorry about the large animated gif
Post Reply