Image-Fixup
view release on metacpan or search on metacpan
lib/Image/Fixup.pm view on Meta::CPAN
# This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
use strict;
use warnings;
use vars qw/$VERSION/;
use base qw/Class::Light/;
use Carp;
use Image::ExifTool;
use Image::Magick;
$VERSION = '0.01002';
=head1 NAME
Image::Fixup - Provides methods to fixup images.
=head1 SYNOPSIS
# Full script in t/scripts/fix_images
lib/Image/Fixup.pm view on Meta::CPAN
'Mirror horizontal and rotate 90 CW' => 'right-bottom',
'Rotate 270 CW' => 'left-bottom'
);
my %im2exif = reverse %exif2im;
sub _init {
my $self = shift;
my $path = shift;
my $prefix = defined $_[0] ? shift : 'fixed_';
my $image = Image::Magick->new;
my $exif = Image::ExifTool->new;
my ($base, $file) = ($path =~ /(.*)\/(.*)/);
$base = $path unless $base;
$file = $base unless $file;
my $err = $image->Read($path);
warn $err if $err;
$exif->ExtractInfo($path);
my %attr = (
( run in 0.757 second using v1.01-cache-2.11-cpan-beeb90c9504 )