画像の情報を取得する方法には、GetまたはPingを使います。 Getで画像の情報を取得する Getメソッドでは、取得したい情報をパラメータとして渡します。 use strict; use Image::Magick; my $file = 'sample.jpg'; my $image = Image::Magick -> new; $image -> Read( $file ); my( $width, $height ) = $image -> Get( 'width', 'height' ); printf "width - %d, height - %dn", $width, $height; undef $image; exit; 指定できる属性は、"width"と"height"以外にも、"filesize"や"format"などもあります。 詳しくは、Get an Imag