
On entry, any elements in the list areadded to the list of requested tags. SCALAR ref A reference to image data in memory.ĪRRAY ref Reference to a list of tag names. GLOB ref A reference to an open image file. For this reason it is best to useeither the keys of the returned hash or the elements of the tag array whenaccessing the return values Thetag names are case-insensitive, so note that the returned tags may not beexactly the same as the requested tags. Tag names may begin with '-' indicating tags to exclude. If no tags are specified, all possible informationis extracted. The remaining scalar arguments are names of tags forrequested information. SCALAR The first scalar argument is taken to be the file name unless an earlierargument specified the image data via a file reference ( GLOB ref) or datareference ( SCALAR ref). Theadvantage of using the object-oriented form is that the options may be setbefore calling ImageInfo, and the object may be used afterward to accessmember functions. Theorder of the arguments is not significant, except that the first SCALAR istaken to be the file name unless a file reference or scalar reference cameearlier in the argument list.īelow is an explanation of how the ImageInfo function arguments areinterpreted:ĮxifTool ref ImageInfo may be called with an ExifTool object if desired. It may be called with one or more arguments.The one required argument is either a SCALAR (the image file name), a GLOBreference (a reference to the image file) or a SCALAR reference (areference to the image in memory). Inputs: ImageInfo is very flexible about the input arguments, and interpretsthem based on their type. $info = ImageInfo(\$imageData, \%options) Internally, ImageInfo calls ExtractInfo to extract the information, GetInfo to generate theinformation hash, and GetTagList for the returned tag list.Įxamples: $info = ImageInfo($filename, $tag1, $tag2) This is the one step function forobtaining meta information from an image. $exifTool = new Image::ExifTool ImageInfo Obtain meta information from image. METHODS new Creates a new ExifTool object. ExifTool currently reads the maker notes of images fromCanon, Casio, FujiFilm, Minolta, Nikon, Olympus, Pentax, Sanyo and Sigmadigital cameras.

$tagName = Image::ExifTool:: = Image::ExifTool:: = Image::ExifTool:: = Image::ExifTool:: GetAllGroups($family) DESCRIPTION ExifTool provides an extensible set of perl modules to extract and parse EXIF, IPTC, XMP and GeoTIFF meta information from JPEG, GIF, TIFF, THM, CRW(Canon RAW), CR2 (Canon 1D Mk II RAW) and NEF (Nikon Electronic imageFormat) images. $group = $exifTool-> GetGroup($tag, = $exifTool-> GetGroups($info, $family) $description = $exifTool-> GetDescription($tag) $value = $exifTool-> GetValue($tag, $type) $combined = $exifTool-> CombineInfo($info1, $info2, = $exifTool-> GetTagList($info, = $exifTool-> = $exifTool-> GetRequestedTags() $info = $exifTool-> GetInfo(\%options, $tag. $success = $exifTool-> ExtractInfo($file, \%options. $oldValue = $exifTool-> Options(Option => 'Value'.

$info = $exifTool-> ImageInfo($file, \%options, $tag. Index NAMEImage::ExifTool - Extract meta information from image files SYNOPSIS use Image::ExifTool 'ImageInfo' Image::ExifToolSection: User Contributed Perl Documentation (3)
