Yoshiki KURIHARA > Template-Plugin-ExifTool > Template::Plugin::ExifTool

Download:
Template-Plugin-ExifTool-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Template::Plugin::ExifTool - Interface to Image::ExifTool Module

SYNOPSIS ^

  [% # filepath is full path of image file. %]
  [% USE image = ExifTool(filepath) %]

  [% # Return meta information for 2 tags only %]
  [% USE image = ExifTool(filepath, 'tag1', 'tag2') %]

  [% # get hash of meta information from an image %]
  [% FOREACH info = image.info %]
  [% info.key %] => [% info.value %]
  [% END %]

  [% # using ExifTool methods %]
  [% image.GetValue(tag, type) %]
  [% image.GetDescription(tag) %]
  ...

DESCRIPTION ^

Template::Plugin::ExifTool is interface to Image::ExifTool Module.

METHODS ^

info

Return hash of meta information tag names/values from an image. This return value is same as Image::ExifTool::ImageInfo.

  [% image.info %]
Using Image::ExifTool methods

It can use methods of Image::ExifTool. Get the value of specified tag.

  [% image.GetValue(tag, type) %]

Get the description for specified tag.

  [% image.GetDescription(tag) %]

...

AUTHOR ^

Author <kurihara@cpan.org>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO ^

Image::ExifTool, Template::Plugin

syntax highlighting: