![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
24/04/2005, 10:57
|
| | Fecha de Ingreso: enero-2005
Mensajes: 43
Antigüedad: 20 años, 1 mes Puntos: 0 | |
Problema con imagesx() tengo esta funcion para mostrar un imagen con un tamaño determinado; function resize($nombre_imagen){
echo "$nombre_imagen";
if (file_exists ($nombre_imagen)) {
$ancho = imagesx ($nombre_imagen);
$alto = imagesy ($nombre_imagen);
$indice = $ancho / $alto;
$nuevo_ancho = 90 * $indice;
echo "<td width=\"33%\" align=\"center\" valign=\"top\"><img src=\"$nombre_imagen\" width=\"90\" height=\"$nuevo_ancho\"><br>
Imagen Actual</td></tr>
</table>";
} else {
echo "<td width=\"33%\" align=\"center\" valign=\"top\"><br>NO tiene Imagen
</td></tr>
</table>";
}
}
y me tira el siguiente error por pantalla; up/imagen0.jpg // este es el nombre de la imagen que esta en el dir up
Warning: imagesx(): supplied argument is not a valid Image resource in /home/promo2k3/public_html/imprimirformulario.php on line 40
Warning: imagesy(): supplied argument is not a valid Image resource in /home/promo2k3/public_html/imprimirformulario.php on line 41 |