Skip to content

jangcom/eps2img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eps2img

NAME

eps2img - Convert PS/EPS files to raster and vector images

SYNOPSIS

    perl eps2img.pl [--fmt=format ...] [--dpi=int] [--pdfversion=version]
                    [--nocrop] [--legacy_epscrop] [--norotate] [--verbose]
                    [--nopause] [-a] file [file ...]

DESCRIPTION

    eps2img facilitates converting PS/EPS files to raster and vector images.
    If you want to animate the rasterized images, consider using img2ani,
    a sister program also written by the author. See "SEE ALSO" below.

OPTIONS

    --fmt=format ... (separator: ,) [default: png,pdf]
        Output formats.
        all
        png
        png_trn
        jpg/jpeg
        pdf
        svg
        emf
        wmf

    --dpi=int [default: 300]
        Raster resolutions. Sane range 100--600.

    --pdfversion=version [default: 1.4]
        The version of converted PDF files.
        The available PDF version is dependent on your Ghostscript version.

    --nocrop
        EPS files will not be cropped when PDFed and PDF-rasterized.

    --legacy_epscrop
        The Ghostscript command -dEPSCrop will be used instead of -dUseCropBox.

    --norotate
        EPS files will not be rotated when PDFed and rasterized.

    --verbose
        Display what are being commanded to the dependency executables.

    --nopause
        The shell will not be paused at the end of the program.

    -a, --all
        All PS/EPS files in the current working directory
        will be converted to the designated output formats.

    file (separator: ,)
        PS/EPS files to be converted.

EXAMPLES

    perl eps2img.pl kuro_shiba.eps mame_shiba.eps --fmt=jpg --dpi=600
    perl eps2img.pl -a --fmt=all
    perl eps2img.pl ./samples/tiger.eps --fmt=pdf --pdfversion=1.7

REQUIREMENTS

    Perl 5
        Moose, namespace::autoclean
        * Consider registering an environment variable called "PERL5LIB"
          with a value of "%userprofile%/Documents/GitHub/eps2img/lib".
    Ghostscript, Inkscape

SEE ALSO

eps2img on GitHub

Want to animate the rasterized images? Check out the sister program: img2ani on GitHub

AUTHOR

Jaewoong Jang <jangj@korea.ac.kr>

COPYRIGHT

Copyright (c) 2018-2023 Jaewoong Jang

LICENSE

This software is available under the MIT license; the license information is found in 'LICENSE'.