http://www.perlmonks.org?node_id=1057438


in reply to How to read Image Resolution on Mac OS X

I have never used Perl on a Mac, but maybe you should try to change the relevant line to:

$info = ImageInfo("$Directory_Path/$eachImage");