Skip to content

Commit

Permalink
print xmp if found
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Aug 26, 2024
1 parent ad0cdf1 commit acf6877
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/exif.pl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ sub usage
my ($e, $ok) = Prima::Image::Exif->read_extras($i, tag_as_string => 1, load_thumbnail => 1);
die "Cannot read exif data in $ARGV[0]: $ok\n" unless $e;

if ( $ok eq 'XMP data') {
print $e;
exit;
}

for my $k ( sort keys %$e ) {
if ( $k eq 'thumbnail' ) {
my $i = $e->{$k};
Expand Down

0 comments on commit acf6877

Please sign in to comment.