Help for this page

Select Code to Download


  1. or download this
    use Image::Size;
    # get the image size, and print it out
    my( $width, $height ) = imgsize( $imagefile_pathname );
    
  2. or download this
    # (assume identify is in the path)
    chomp( my $ident = `identify -format "%w %h" "$imagefile_pathname"` );
    my( $width, $height ) = split ' ', $ident;