
02/06/2011, 10:15
|
 | | | Fecha de Ingreso: enero-2011 Ubicación: $cubano->Arg->Mendoza
Mensajes: 1.184
Antigüedad: 14 años, 1 mes Puntos: 209 | |
Respuesta: redimensionar imagen externa y guardarla en la BD hmmm me da estos Warnings
Warning: imagecreatefromgif() [function.imagecreatefromgif]: 'http://www.inmoclick.com.ar/ftp_inmohost/fotos/9-2027-6.gif' is not a valid GIF file in \\PRONET-01\D - DOCUMENTOS\1 - Clientes en Proceso\Pirka\P03\es\php\test.php on line 44
Warning: imagecopyresampled() expects parameter 2 to be resource, boolean given in \\PRONET-01\D - DOCUMENTOS\1 - Clientes en Proceso\Pirka\P03\es\php\test.php on line 61
y cuando veo la imagen, ha creado una imagen toda negra, con las dimensiones correctas, pero todo negro, como que no ha podido hacer el gif
$anchura = 160;
$maxima_y = 120;
$type = "image/".substr('http://www.inmoclick.com.ar/ftp_inmohost/fotos/9-2027-6.gif', -3, 3);
$foto = Redimensionar($anchura, $maxima_y, 'http://www.inmoclick.com.ar/ftp_inmohost/fotos/9-2027-6.gif', $type);
$sql = "insert into inmueble (idPirka, test, type) values('456', '$foto', '$type')";
echo $myConexion->consulta($sql);
la funcion redimensionar es la que está arriba |