How do I get the ImageSize of the embedded Thumbnail?

Started by wildgoose, April 28, 2011, 08:49:02 PM

Previous topic - Next topic

wildgoose

The thumbnail itself is in


${$$info{ThumbnailImage}}


Which is itself a jpg file. Is there a way to get ExifTool to parse this in memory data to give me the ImageSize?

Thanks!

Phil Harvey

$info = $exifTool->ImageInfo($$info{ThumbnailImage});
print "$$info{ImageSize}\n";
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).