I'd go for Image::Info
In reply to Re: Dimensions of a jpg file by b10m in thread Dimensions of a jpg file by steelrose