Ver Mensaje Individual
  #12 (permalink)  
Antiguo 15/11/2010, 06:29
Ghosty
 
Fecha de Ingreso: junio-2008
Mensajes: 292
Antigüedad: 15 años, 10 meses
Puntos: 4
Respuesta: guardar imaqen.php con .jpg

Cita:
Iniciado por abimaelrc Ver Mensaje
imagejpeg tiene un segundo parametro que te ayuda a guardar la imagen en un archivo directamente.
Te refieres a esto

//Output image and clean
header( "Content-type: image/jpeg");
//header ("Location: mi_imagen.jpg");
ImageJPEG( $image, "mi_camiseta.jpg" );
$imageup = file_get_contents($image);
file_put_contents("files_pedidos/micamiseta4.jpg", $imageup);
imagedestroy( $image );

lo probe y no funciona