in reply to How to read Image Resolution on Mac OS X
Is ImageInfo returning any error messages or state? I am specifically wondering what the path in the line $info = ImageInfo("$Directory_Path\\$eachImage"); does.
Also, how have you tried to debug this? Have you printed the value of $eachImage within the loop? Do you make it past the next? Do you receive any output, errors, or other information -- But I am not able to read the image Meta information. is very similar to "it doesn't work", which is almost useless from a debugging or assistance point of view.
Update: this is an example of what an error looks like from ImageInfo:
You need to learn to break stuff like this down piece by piece, and think about what is or may be happening.perl -MImage::ExifTool=ImageInfo -MData::Dumper -e "$x=ImageInfo('frob +nitz.jpg'); warn Dumper($x)" $VAR1 = { 'Error' => 'Error opening file', 'Directory' => '.', 'FileName' => 'frobnitz.jpg', 'ExifToolVersion' => '9.27' };
--MidLifeXis
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to read Image Resolution on Mac OS X
by Jouve (Initiate) on Oct 10, 2013 at 06:26 UTC |