Forum OpenACS Q&A: Response to Problems with Images

Collapse
Posted by Krzysztof Kowalczyk on
I used wget to get the image directly:
[kjk@rusty acs]$ wget http://cashew.bae.lsu.edu:8000/static/buttons/homebutton_over.gif
--21:49:12--  http://cashew.bae.lsu.edu:8000/static/buttons/homebutton_over.gif
           => `homebutton_over.gif.1'
Connecting to cashew.bae.lsu.edu:8000... connected!
HTTP request sent, awaiting response... 200 OK
Length: unspecified [image/gif]

    0K ->

21:49:12 (768.55 KB/s) - `homebutton_over.gif.1' saved [787]
As a response I get 787 byte file with a good content type (image/gif) but the file is corrupted. I'm not an expert on gfx formats but it starts ok (with "GIF89 header"):
[kjk@rusty acs]$ hexdump -c homebutton_over.gif 
0000000   G   I   F   8   9   a   z   Ã? 200 033   Ã? 200   Ãf 204   Ã? 200
0000010   Ã? 200   f   3   Ã, 231   Ã,   ¢   x   Ãf 210   Ã, 215   Z   Ã,   ¼
0000020   Ãf   ¢   Ãf 226   Ãf   ®   Ã,   ¿   Ã,   ¢   Ãf 231   Ãf   ¸   Ãf   µ
but neither ee nor gimp can load it. So it's corrupted. I see two possibilities:
  • it's not send correctly by AOLserver. Go to your server and see if homebutton_over.gif is 787 bytes in length.
  • it's broken on your machine
To test the second possibility: on your machine try to use gimp or ee or any other gfx program to manipulate it.

If you uploaded the image to your server with ftp make sure that you use 'bin' (not 'ascii') mode of transfer.

Basically compare the gif on your Linux machine with a source gif that you're sure is correct.