Image::JpegTran - XS wrapper around lossless JPEG transformation utility - jpegtran
use Image::JpegTran; jpegtran 'source.jpg','result.jpg', rotate => 90, trim => 1, perfect => 1; jpegtran 'source.jpg','result.jpg', transpose => 1; jpegtran 'source.jpg','result.jpg', transverse => 1; jpegtran 'source.jpg','result.jpg', flip => 'horizontal';
Use lossless jpeg transformations, like when using jpegtran utility, from Perl
jpegtran
Copy no extra markers from source file
Copy only comment markers
Copy all extra markers (comments and EXIF) (default)
Optimize Huffman table (smaller file, but slow compression), default = 0
Create progressive JPEG file (default = 0)
Reduce to grayscale (omit color data) (default = 0)
Mirror image (left-right or top-bottom)
Rotate image (degrees clockwise)
Transpose image
Transverse transpose image
Drop non-transformable edge blocks or
Fail if there is non-transformable edge blocks
Maximum memory to use (in kbytes)
Use arithmetic coding
-restart N Set restart interval in rows, or in blocks with B -verbose or -debug Emit debug output -scans file Create multi-scan JPEG per script file
Mons Anderson, <mons@cpan.org>
The main part of this module is copyright (C) 1991-2010
The Independent JPEG Group's JPEG software
Thomas G. Lane, Guido Vollbeding.
See README.IJG
2 POD Errors
The following errors were encountered while parsing the POD:
Unknown directive: =over4
'=item' outside of any '=over'
To install Image::JpegTran::AutoRotate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Image::JpegTran::AutoRotate
CPAN shell
perl -MCPAN -e shell install Image::JpegTran::AutoRotate
For more information on module installation, please visit the detailed CPAN module installation guide.