Replace imagejpeg with imagepng, and where it says<br>
<br>
header("Content-Type: image/jpeg"); <br>
<br>
or some such, change the MIME type to "image/png". That should really be sufficient.<br><br>Then again, if you're lacking the GD library (which would be the only reason I can think of that imagejpeg wouldn't work), you're SOL.
<br><br>Jeremy<br><br><div><span class="gmail_quote">On 9/8/06, <b class="gmail_sendername">Harri Nyman</b> <<a href="mailto:hny@ntek.tk">hny@ntek.tk</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Josh Hoyt wrote:<br>> On 9/8/06, Harri Nyman <<a href="mailto:hny@ntek.tk">hny@ntek.tk</a>> wrote:<br>>> First of all, must say I was pretty impressed with what I saw.. okay,<br>>> now to the not so pleasant part.
<br>>><br>>> I have Debian Sid, with php5, php5-gd and php5-mysql installed on apache<br>>> 2 - captcha image is not working. Just to make things bit more<br>>> interesting, there is another application on same webserver which also
<br>>> uses php5-gd and that one is working perfectly fine...<br>>><br>>> any suggestions where to look for solution?<br>><br>> Just to confirm, you're talking about the JanRain PHP standalone<br>> OpenID server, right?
<br>><br>> Josh<br>><br><br>That is correct - and I've isolated the problem, it's imagejpeg<br>-function which is not working properly - is there any easy way to<br>replace jpeg with png image? My other application is using png images.
<br><br>I guess it's php installation issue, but to be honest, I have no idea<br>what I need to add into my system, and shooting into darkness is not my<br>thing... :)<br><br>Harri<br><a href="http://www.ntektechnologies.com">
http://www.ntektechnologies.com</a><br><br>_______________________________________________<br>general mailing list<br><a href="mailto:general@openid.net">general@openid.net</a><br><a href="http://openid.net/mailman/listinfo/general">
http://openid.net/mailman/listinfo/general</a><br></blockquote></div><br>