-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Jang edited this page May 16, 2019
·
7 revisions
eps2img - Convert PS/EPS files to raster and vector images
perl eps2img.pl [ps_file ...|-all] [-out=format ...] [-raster_dpi=int]
[-pdfversion=version] [-nocrop] [-nofm] [-nopause] eps2img wraps Ghostscript and Inkscape to ease
converting PS/EPS files to raster and vector images.
eps2img uses Image.pm, a Moose class written by the author:
eps2img.pl --- Image.pm --- Ghostscript, Inkscape
If you want to animate the rasterized images, consider using img2ani,
a sister program written by the author. See "SEE ALSO" below. ps_file ...
PS/EPS files to be converted. Multiple files should be
separated by the space character.
-all|-a
All PS/EPS files in the current working directory
will be converted to the designated output formats.
-out|-o=format ...
Output image formats. Multiple formats should be
separated by the comma (,).
all (all formats below)
png (default)
png_trn (transparent)
jpg/jpeg
pdf
emf
wmf
-raster_dpi|-dpi=int
Raster (.png and .jpg) resolution.
Default 300, sane range 100--600.
-pdfversion=version (-short form: -pdf, default: 1.4)
The version of converted PDF files. The available version
is subject to your Ghostscript version.
-nocrop
EPS files will not be cropped when rasterized.
-nofm
The front matter will not be displayed at the beginning of the program.
-nopause
The shell will not be paused at the end of the program.
Use it for a batch run. perl eps2img.pl kuro_shiba.eps mame_shiba.eps -o=jpg -raster_dpi=600
perl eps2img.pl -a -o=png_trn,jpg -raster_dpi=200 -nofm
perl eps2img.pl -a -o=all
perl eps2img.pl ./samples/tiger.eps -o=pdf -pdf=1.7 Perl 5
Moose, namespace::autoclean
Ghostscript, InkscapeWant to animate the rasterized images? Check out the sister program: img2ani on GitHub
Jaewoong Jang <jangj@korea.ac.kr>
Copyright (c) 2018-2019 Jaewoong Jang
This software is available under the MIT license; the license information is found in 'LICENSE'.