Installation struggles - debian, no captcha image with php5
Jonathan Daugherty
cygnus at janrain.com
Fri Sep 8 17:44:34 UTC 2006
# That is correct - and I've isolated the problem, it's imagejpeg
# -function which is not working properly - is there any easy way to
# replace jpeg with png image? My other application is using png
# images.
How is it malfunctioning? Are you getting an error message? Maybe
you're being bitten by this from http://us2.php.net/imagejpeg:
"Note: JPEG support is only available if PHP was compiled against
GD-1.8 or later."
Replace the imagejpeg line with this:
if (imagetypes() & IMG_JPG) {
imagejpeg($image, '', 90);
} else if (imagetypes() & IMG_PNG) {
imagepng($image);
} else if (imagetypes() & IMG_GIF) {
imagegif($image);
}
--
Jonathan Daugherty
JanRain, Inc.
More information about the general
mailing list