EPS (.eps, .epsf)

Background & Context

    • MIME types: application/postscript, application/eps, application/x-eps, image/eps, image/x-eps
    • EPS page description language and file format.
    • Commonly used in 2D vector graphics and page layout applications.
    • Self-contained PostScript fragment, suitable for inclusion in other documents.
    • EPS is an acronym derived from Encapsulated PostScript.
    • Plain text format.
    • Stores text and vector graphics using the PostScript language.
    • Can include fonts and embedded raster graphics.
    • Supports various color encodings, including monochrome, grayscale, RGB, and CMYK.
    • Precursor to PDF.
    • PostScript was introduced in 1984 by Adobe.

Import & Export

  • Import["file.eps"] imports an EPS file, returning its content as graphics.
  • Export["file.eps",expr] exports an arbitrary text string, vector graphics, Notebook, or Cell expression to EPS.
  • Wolfram System fonts and other nonstandard fonts are by default embedded in the exported file if necessary.
  • Import["file.eps"] converts an EPS file to Wolfram Language vector graphics.
  • Import["file.eps","Plaintext"] gives a plain text version of an EPS file.
  • Export["file.eps",expr,elem] creates an EPS file by treating expr as specifying element elem.
  • The export format can be explicitly specified with the command Export["file",expr,"EPS"].
  • Import["file.eps",elem] imports the specified element from an EPS file.
  • Import["file.eps",{elem,suba,subb,}] imports a subelement.
  • Import["file.eps",{{elem1,elem2,}}] imports multiple elements.
  • The import format can be specified with Import["file","EPS"] or Import["file",{"EPS",elem,}].
  • Export["file.eps",expr, elem] creates an EPS file by treating expr as specifying element elem.
  • Export["file.eps",{expr1,expr2,},{{elem1,elem2,}}] treats each expri as specifying the corresponding elemi.
  • Export["file.eps",expr,opt1->val1,] exports expr with the specified option elements taken to have the specified values.
  • Export["file.eps",{elem1->expr1,elem2->expr2,},"Rules"] uses rules to specify the elements to be exported.
  • See the reference pages for full general information on Export.
  • ExportString supports the EPS format.

Notebook Interface

  • In the notebook front end, Save As exports the active notebook as an EPS file.
  • Save Selection As exports the selected part of a notebook to EPS.

Import Elements

  • Data representation elements:
  • "Graphics"arbitrary 2D graphics
    "Plaintext"textual content given as a string
    "Image"raster image
    "Preview"embedded preview image
  • Import and Export use the "Graphics" element by default.


  • General options:
  • BackgroundAutomaticbackground color shown in transparent image regions
    ImageSizeAutomaticoverall image size
    ImageResolution72image resolution for rasterization in dpi
  • Advanced Export options:
  • "AllowRasterization"Automaticwhether to rasterize 2D and 3D graphics
    "EmbeddedFonts"Truewhether to include nonstandard fonts
    "PreviewFormat"Noneformat of the image preview to be included
  • Possible settings for "PreviewFormat" are:
  • None no embedded preview
    "Interchange" device-independent preview (EPSI)
    "Metafile" Windows metafile preview (WMF)
    "TIFF" TIFF raster image
  • Possible settings for "AllowRasterization":
  • Automatic rasterize graphics with features such as transparency that cannot be reproduced faithfully in EPS
    True always rasterize graphics
    False always use vector graphics


Basic Examples  (7)

Import an EPS file as vector graphics:

Export vector graphics to EPS:

Export a function plot to EPS:

When converting output containing characters to EPS, the Wolfram System by default includes all nonstandard fonts in the exported document:

This exports a Cell expression to EPS:

This converts a Notebook expression to EPS:

Create an EPSI file:

Introduced in 1999
Updated in 2010