Some PNGs not working in browser?
Some PNGs not working in browser?
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)?
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)?
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6711
- Joined: Thu Dec 18, 2003 7:03 pm
- Jonathan
- A Brave Victim
- Posts: 3391
- Joined: Thu Feb 03, 2005 12:50 am
- Location: Not really lurking anymore
The headers. Thank you telnet.
Doesn't work:
Works:
Looks like it doesn't like image/x-png.
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>
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>
ˌɑrməˈɡɛˌtrɑn
- Jonathan
- A Brave Victim
- Posts: 3391
- Joined: Thu Feb 03, 2005 12:50 am
- Location: Not really lurking anymore
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