NAME
Image::JpegTran - XS wrapper around lossless JPEG transformation utility
- jpegtran
SYNOPSIS
use Image::JpegTran ':all';
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';
jpegautotran 'source.jpg'; # automaticallty rotate image if
DESCRIPTION
Use lossless jpeg transformations, like when using "jpegtran" utility,
from Perl
OPTIONS
copy => 'none'
Copy no extra markers from source file
copy => 'comments'
Copy only comment markers
copy => 'exif'
Copy only EXIF marker
copy => 'all'
Copy all extra markers (comments, EXIF, etc) (default)
discard_thumbnail => 0 | 1
Discard thumbnail from EXIF (default = 1)
optimize => 0 | 1
Optimize Huffman table (smaller file, but slow compression), default
= 0
progressive => 0 | 1
Create progressive JPEG file (default = 0)
grayscale => 0 | 1
Reduce to grayscale (omit color data) (default = 0)
flip => 'horizontal' | 'h' | 'vertical' | 'v'
Mirror image (left-right or top-bottom)
rotate => 90 | 180 | 270
Rotate image (degrees clockwise)
transpose => 1
Transpose image (flip-h + rotate 270)
transverse => 1
Transverse image (flip-h + rotate 90)
trim => 1
Drop non-transformable edge blocks (after this, any transformation
on resulting image would be perfect)
perfect
Fail if there is non-transformable edge blocks
maxmemory => N
Maximum memory to use (in kbytes)
arithmetic => 1
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
AUTHOR
Mons Anderson, <[email protected]>
COPYRIGHT AND LICENSE
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
POD ERRORS
Hey! The above document had some coding errors, which are explained
below:
Around line 58:
Unknown directive: =over4
Around line 60:
'=item' outside of any '=over'