Example code:
<?php
$image = new imagick($filename);
$geo=$image->getImageGeometry();
$sizex=$geo['width'];
$sizey=$geo['height'];
?>
Imagick::getImageGeometry
(No version information available, might be only in CVS)
Imagick::getImageGeometry — 幅と高さを連想配列で取得する
説明
array Imagick::getImageGeometry
( void
)
警告
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
幅と高さを連想配列で返します。
返り値
画像の幅と高さを表す配列を返します。 エラー時に ImagickException をスローします。
Imagick::getImageGeometry
tim at provu dot co dot uk
20-Nov-2008 05:05
20-Nov-2008 05:05
