https://github.com/mons/image-jpegtran
XS wrapper around lossless JPEG transformation utility - jpegtran
https://github.com/mons/image-jpegtran
Last synced: 10 months ago
JSON representation
XS wrapper around lossless JPEG transformation utility - jpegtran
- Host: GitHub
- URL: https://github.com/mons/image-jpegtran
- Owner: Mons
- License: other
- Created: 2010-07-03T00:18:15.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2015-08-18T11:28:36.000Z (almost 11 years ago)
- Last Synced: 2023-03-10T20:33:10.407Z (over 3 years ago)
- Language: C
- Homepage: http://search.cpan.org/dist/Image-JpegTran
- Size: 610 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
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,
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'