Installation struggles - debian, no captcha image with php5
Harri Nyman
hny at ntek.tk
Fri Sep 8 18:55:11 UTC 2006
Jonathan Daugherty wrote:
> # 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);
> }
>
Check out yourself - http://auth.ntek.tk and from there obiviously
registration. For some reason I cannot get imagepng working either, but
I'm checking into that right now.
When it comes to installation issues in general, if mailing list is not
the place, perhaps someplace there should be a wiki with installation
instructions for various systems? At current openid server is ... pain
to get working properly ;) If I can get this one solved, I will write
cookbook instructions for Debian :-D
Harri
http://www.ntektechnologies.com
More information about the general
mailing list