Example code:
<?php
$image = new imagick($filename);
$geo=$image->getImageGeometry();
$sizex=$geo['width'];
$sizey=$geo['height'];
?>
Imagick::getImageGeometry
(PECL imagick 2.0.0)
Imagick::getImageGeometry — Gets the width and height as an associative array
Opis
array Imagick::getImageGeometry
( void
)
Returns the width and height as an associative array.
Zwracane wartości
Returns an array with the width/height of the image.
Błędy/Wyjątki
Zgłasza wyjątek ImagickException w przypadku błędu.
tim at provu dot co dot uk
20-Nov-2008 07:05
