Ver Mensaje Individual
  #6 (permalink)  
Antiguo 01/10/2009, 19:50
thezzin
 
Fecha de Ingreso: septiembre-2008
Mensajes: 350
Antigüedad: 15 años, 8 meses
Puntos: 31
Respuesta: Como se las dimensiones de una imagen...

prueba con este codigo:
Código PHP:
<?php
list($width$height$type$attr) = getimagesize("MyImage.jpg");
echo 
"anchura " .$width."<br />";
echo 
"altura " .$height."<br />";
echo 
"Tipo " .$type."<br />";
echo 
"Atributo " .$attr;
?>

este te funciona para los siguientes formatos:
  1. .jpg
  2. .gif
  3. .png
  4. .BMP
  5. .SWF
  6. ETC.


puedes leer mas aquí: http://us.php.net/function.getimagesize


-
__________________
╬-----╬
║☺₧☻║
╬-----╬