in reply to CPAN Module for Detecting Dimension of a PNG/GIF/JPEG File

Apart from those two, you could also try Image::ExifTool or (much too heave for just getting the size) Image::Magick


Enjoy, Have FUN! H.Merijn
  • Comment on Re: CPAN Module for Detecting Dimension of a PNG/GIF/JPEG File

Replies are listed 'Best First'.
Re^2: CPAN Module for Detecting Dimension of a PNG/GIF/JPEG File
by bart (Canon) on Sep 20, 2007 at 11:28 UTC
    Image::Magick can be used to do the actual image resizing, in one go, so it might not be too much overkill after all.

    Note that you can resize an image to a maximum size for both width and height, so there's no need to calculate the final dimensions, based on the aspect ratio, yourself.