Only resize .jpg works (not .gif)

Having trouble installing serendipity?
Post Reply
SurfDude
Regular
Posts: 12
Joined: Sat Jan 01, 2005 8:30 pm
Location: Enschede, The Netherlands
Contact:

Only resize .jpg works (not .gif)

Post by SurfDude »

I have a problem with the uploading function. I can add .jpg's and serendepity resizes them, no problem. But when I try to upload a .gif, it doesn't resize it, and doesn't displays it in the media library neither. (But it DOES upload it.)

Also it's not possible to upload images from some www-adres (from client diskdrive it's no problem). It does upload something, but that "something" is an empty (white) image.

Any idea what can causes this problem? I have the "Use Imagemagick" boolean turned off.
tomsommer
Core Developer
Posts: 240
Joined: Tue Sep 02, 2003 6:43 pm
Location: Denmark
Contact:

Post by tomsommer »

You most likely don't have gif write or png write compiled into your PHP installation
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

And it seems like you have PHPs allow_url_open set to FALSE. Serendipity 0.8 allows to download HTTP images using the PEAR class which will work despite that PHP setting. You might want to try that out...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
oxygenws
Regular
Posts: 148
Joined: Thu Jan 20, 2005 11:20 am
Location: Iran
Contact:

Post by oxygenws »

But when I try to upload a .gif, it doesn't resize it, and doesn't displays it in the media library neither
maybe your GD version is too OLD, please upgrade it to 2.0.28 or later.
Post Reply