//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
(PECL imagick 2, PECL imagick 3)
Imagick::getImageHeight — 画像の高さを返す
この関数にはパラメータはありません。
画像の高さをピクセル数で返します。
エラー時に ImagickException をスローします。
//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