Extract the appropriate parts of Image::Info and embed them in your script. It's a small module.
In reply to Re: Image Size by dws in thread Image Size by andrew