Skip to content

Commit

Permalink
add an example of reading exif tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Cook committed Jul 24, 2006
1 parent b81163c commit cb00d34
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/Imager/Files.pod
Expand Up @@ -443,6 +443,20 @@ specification for that value appears in the derived field. So for
example if C<exf_metering_mode> is C<5> then
C<exif_metering_mode_name> is set to C<Pattern>.

eg.

my $image = Imager->new;
$image->read(file => 'exiftest.jpg')
or die "Cannot load image: ", $image->errstr;
print $image->tags(name => "exif_image_description"), "\n";
print $image->tags(name => "exif_exposure_mode"), "\n";
print $image->tags(name => "exif_exposure_mode_name"), "\n";

# for the exiftest.jpg in the Imager distribution the output would be:
Imager Development Notes
0
Auto exposure

=over

=item parseiptc
Expand Down

0 comments on commit cb00d34

Please sign in to comment.