Extract size info from image files via image::size.
my $db = MP3::Tag::ImageExifTool->new($filename); # Name of multimedia file
see MP3::Tag
MP3::Tag::ImageExifTool is designed to be called from the MP3::Tag module.
It implements width(), height() and mime_type() methods (sizes in pixels).
They return \*(C`undef\*(C' if \*(C`Image::Size\*(C' is not available, or does not return valid data.