//file location c:/htdocs/rose.jpg
$image=new Imagick("c:/htdocs/rose.jpg");
$height=$image->getImageHeight();
print "the image height is ".$height;
result:
the image height is 134
Imagick::getImageHeight
(PECL imagick 2.0.0)
Imagick::getImageHeight — Returns the image height
Opis
int Imagick::getImageHeight
( void
)
Returns the image height.
Zwracane wartości
Returns the image height in pixels.
Błędy/Wyjątki
Zgłasza wyjątek ImagickException w przypadku błędu.
perching_eagle at yahoo dot com
04-Oct-2007 06:19
