PNG file corrupted by ASCII conversion...

adamgreenwell - December 12, 2004 - 17:26

It seems that no .png that I try to load will display, and when after I logged into Drupal for the first time on my website, it gave me this error:

warning: getimagesize(): PNG file corrupted by ASCII conversion in /home/thefitn/public_html/includes/theme.inc on line 461

The theme thumbnails also won't display when I try to switch themes.

I have been able to view .png's before, but after I installed Drupal, no.png's will display. Could the problem be due to a Drupal error, or is the probelm with mt host?

Oh yeah, I had my FTP client set to auto-detect when I uploaded Drupal, and I tried to re-upload the images with the ASCII and Binary setting and that didn't work either.

FTP client may not auto-detect png

Steve Dondley - December 12, 2004 - 18:06

Your FTP client is probably incorrectly classifying png files as ascii files. Try transferring them manually with your transfer setting set to "binary".

That took care of displaying

adamgreenwell - December 12, 2004 - 19:07

That took care of displaying the images, but I still get the error

warning: getimagesize(): PNG file corrupted by ASCII conversion in /home/thefitn/public_html/includes/theme.inc on line 461.

whe I click administer from the front page. Should I be concerned with it or disregard it?

Other than being annoying...

Steve Dondley - December 13, 2004 - 00:05

it's not going to hurt anything. My guess is you still have an image that was uploaded in ascii mode. Upload all the images again and overwrite the old ones. Make sure you are in binary mode.

I am having the same problem

afreshup - April 8, 2006 - 18:50

Did you ever get this fixed? I have re-loaded all images and still get the error?
admin@lendfast.com

binary transfer worked

t.a. barnhart - May 5, 2006 - 20:30

i set my ftp client to Binary & reloaded the png files from the /misc folder -- they were the only ones i had; it's a new site -- and the error went away. looks like this is a good fix. and it makes sense: i've had photos not show up at all until i forced my ftp client to transfer them binary.

thanks for the fix!

binary worked for me too!

kemi - January 21, 2009 - 14:46

thanks

KU

 
 

Drupal is a registered trademark of Dries Buytaert.