Ver Mensaje Individual
  #13 (permalink)  
Antiguo 14/10/2010, 10:09
adristb
 
Fecha de Ingreso: mayo-2010
Mensajes: 61
Antigüedad: 14 años
Puntos: 1
Respuesta: Fallo en el Captcha

Muchisimas Gracias, encontre el fallo.

Lo explico por si le pasa a alguien lo mismo

resulta que en la linea:

$NewImage =imagecreatefromjpg("bgcaptcha.gif");//image create by existing image and as back ground

la funcion imagecreatefromjpg debe ser cambiada por imagecreatefromgif ya que la imagen es punto gif

y en el header en vez de poner :

header("Content-type: image/jpg");// out out the image

hay que poner

header("Content-type: image/gif");// out out the image
ya que es un gif

Muchas gracias de verdad y un saludo