(PECL imagick 2, PECL imagick 3)
Imagick::getImageGeometry — Obtiene el ancho y el alto como un array asociativo
Devuelve un array con el ancho/alto de la imagen.
Lanza ImagickException en caso de error.
Ejemplo #1 Imagick::getImageGeometry()
<?php
function getImageGeometry($imagePath) {
$imagick = new \Imagick(realpath($imagePath));
header("Content-Type: image/jpg");
echo $imagick->getImageBlob();
}
?>