Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages

Manual Reference Pages  -  EPS2PNG (1)

.ds Aq ’


eps2png - convert EPS files to PNG, JPG or GIF images



    eps2png [ options ] files ...
    eps2gif [ options ] files ...
    eps2jpg [ options ] files ...


Converts files from EPS format (Encapsulated PostScript) to some popular image formats.

If installed as eps2png (the default), it produces PNG images by default. Likewise, eps2gif defaults to GIF images and eps2jpg defaults to JPG. Note that the normal installation procedure will only install eps2png.

It uses GhostScript to produce the images. Since modern GhostScript programs do not support GIF anymore, GIF images are produced via the Portable PixMap converters (PBM-package). In this case, a temporary file is created, named after the output file, with the extension replaced by .ppm. It is deleted upon completion.


<B>eps2pngB> always requires at least one argument: the name of the EPS file to be converted. It is possible to specify more than one file name. This will cause all named files to be converted into separate files, e.g., "sample.eps will be converted to sample.png" and so on.
<B>-png -pngmono -pnggray -png16 -png256 -png16m -pngalphaB> Each of these options will instruct Ghostscript to use the corresponding bitmap generator, and supply a .png default extension for output files.
<B>-jpg -jpggray -jpeg -jpeggrayB> Same, but with a .jpg default extension for output files.
<B>-gif -gifmonoB> Same, but with a .gif default extension for output files.

Note: Since modern Ghostscript versions no longer support the GIF format due to copyright restrictions, <B>eps2pngB> will request Ghostscript to produce a Portable Bitmap File (.ppm or .pbm) instead and run the <B>ppmtogifB> converter to produce the actual GIF file.

<B>-monoB> This option will select monochrome (BW or gray) output. It forces the Ghostscript driver to pngmono, jpeggray, pbm, or gifmono.
<B>-nomonoB> Produces colour images. This is the default.
<B>-widthB> NN The desired width of the output image.

If <B>-heightB> is not specified, the image will be scaled proportionally.

<B>-heightB> NN The desired height of the output image.

If <B>-widthB> is not specified, the image will be scaled proportionally.

<B>-resolutionB> NN Specifies the resolution for the output image. This is the width, in pixels, of the bitmap image for an EPS image of one inch wide (72 PostScript points).

Note that for best results, use the <B>-widthB> and <B>-heightB> options instead.

Default value is 82, which causes the converted image to be of more or less the same size as the EPS image. On my screen, that is.

<B>-scaleB> NN Specify a scaling factor. This may be a fractional number.

For a one-inch EPS image, the resultant bitmap image will be scale times resolution.

Note that for best results, use the <B>-widthB> and <B>-heightB> options instead.

<B>-antialiasB> NN Sets the antialiasing depth. NN must be 0 (no antialiasing), 1, 2, 4, or 8. Default value is 4.
<B>-noantialiasB> Sets the antialiasing depth to 0.
<B>-pbmB> Forces GIF conversion through the PBM converters.
<B>-nopbmB> Forces GIF conversion through Ghostscript.
<B>-outputB> XXX Stores the output in this file. Only one input file may be supplied if this option is specified.
<B>-helpB> Prints a help message and exits.
<B>-identB> Prints the program version before doing anything else.
<B>-verboseB> Provides more verbose information.


Johan Vromans, <>.


GhostScript and, if required, the PBM package, need to be installed and accessible through the user’s PATH.

GhostScript is assumed to be capable of handling all the image types listed above.

The EPS should be well-behaving.


This program is Copyright 1994,2008 by Johan Vromans. This program is free software; you can redistribute it and/or modify it under the terms of the Perl Artistic License or the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

If you do not have a copy of the GNU General Public License write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Search for    or go to Top of page |  Section 1 |  Main Index

perl v5.20.3 EPS2PNG (1) 2016-04-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.