Git Product home page Git Product logo

image-jpegtran's Introduction

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'

image-jpegtran's People

Contributors

mons avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.