Subversion Repositories Scribus


Rev 21064 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10646 cbradney 1
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
15778 christoph 4
        <title>Importing EPS</title>
10646 cbradney 5
18501 gpittman 6
@import "manual.css";
10646 cbradney 9
15778 christoph 10
<h2>Importing EPS</h2>
<h3>What is EPS?</h3>
16010 christoph 12
<p>EPS (Encapsulated PostScript) is a subset of the page description language <a href="">PostScript</a>. While PostScript is used to describe the graphical elements of one or more pages in a device-independent manner, an EPS file contains PostScript elements for a single image, and, importantly, must include a so-called Bounding Box, a rectangular which is necessary to describe the dimensions of the image. Like PostScript, an EPS file can contain bitmap images (pixels), vector data and text. Also, most, if not all EPS files are not meant to be edited, since EPS, like PDF, is designed as an exchange format.</p>
3078 mrdocs 13
15778 christoph 14
<h3>Why EPS?</h3>
16010 christoph 15
<p>Perhaps the main reason to use EPS is its ubiquity in most professional print workflows. If in doubt, most graphics professionals will ask for or send you an EPS file, which is sometimes seen as the lowest common denominator for high-quality graphics files. Also, the EPS format is well-documented, and the specification is <a href="">publicly available</a>. When it comes to vector graphics, EPS (or a successor format like AI or PDF) is unsurpassed in terms of quality. While relatively unimportant with small graphics in a flier, it&rsquo;s safe to say that for large output media like posters, EPS may be the only reliable choice for vector graphics if superior print quality is important. Finally, the EPS format provides some features that are important in professional printing, like font embedding or support for CMYK and spot colors.</p>
15778 christoph 16
<h3>EPS Import</h3>
15790 christoph 18
<p> There are two basic methods of importing EPS files, and both have pluses and minuses. For some files you can choose which method suits your needs best, while other files can only be imported one way.</p>
15778 christoph 19
<h4>EPS Previews</h4>
21064 gpittman 21
<p>One of the idiosyncracies of the EPS format that frequently causes confusion with inexperienced users is the EPS preview. The PostScript language had been designed to describe pages for a printing device, and at the time the format was introduced, computers weren&rsquo;t capable of rendering the highly complex content of a PS file on screen. The same was, of course, true for EPS, and to provide users some visual indication of a file&rsquo;s content, preview images were embedded in an EPS file. Unfortunately, there is no uniform standard for the format of the preview image, and the preview isn&rsquo;t even required. As a result, applications on Macs used the Mac&rsquo;s PICT format for previews, Windows applications Windows Metafiles, and UNIX programs ASCII-encoded bitmaps, which made the preview unworkable across platforms. For those who previously avoided using EPS files because of their lacking preview and/or poor support by programs like word processors, there is some good news: Scribus will always create a usable preview in its file dialogs, either based on the embedded preview, or, if the latter doesn&rsquo;t work, by using Ghostscript to create a low-resolution PNG that displays the content of an EPS file. Likewise, no matter how you import an EPS, what you see in Scribus is always the original content, not a preview. Be aware, though, that a Scribus file dialog always indicates the color space and the resolution of the preview image, not the ones in the EPS itself. Also note that creating the preview for a large and complex EPS file in a file dialog may take some time to render:</p><br>
15778 christoph 22
15790 christoph 23
<table width="100%"><tr><td align="center"><img src="images/eps-imp1.png" title="EPS preview in a file dialog" alt="EPS preview in a file dialog" /></td></tr></table><br>
15778 christoph 25
<h4>Importing into an image frame</h4>
15997 christoph 26
<p>This is usually the safest way to import an EPS. Provided Ghostscript is installed and properly <a href="gsfont.html">configured</a>, it works just like with any other <a href="WwImages.html">bitmap image</a>. However, since Scribus uses Ghostscript to rasterize the EPS, loading and rendering may take some time, depending on the complexity of the file.</p>
15778 christoph 27
15790 christoph 28
15830 christoph 29
15790 christoph 30
<li>Photoshop can export EPS natively, but these are mostly raster objects within the EPS, with some Photoshop-specific features like layers and blend modes. Photoshop also can export a special type of EPS called DCS (Desktop Color Separations). This flavor of EPS is best imported into an image frame, where Scribus will detect and enable extended image editing/displaying capabilities. See the section about <a href="psd.html">PSD import</a> for more information.</li>
<li>Image mask doesn&rsquo;t work correctly.</li>
<li>Clipping paths are ignored.</li>
15830 christoph 33
15790 christoph 34
15778 christoph 35
<h4>Importing as a vector drawing</h4>
16010 christoph 36
<p>Importing EPS like any other <a href="importhints2.html">vector file</a> via <i>File > Import >Get Vector File</i>, if possible, does have some advantages. Since you are working with vector data, file size and exported PDF size are relatively small. It makes the exported files resolution-independent, so they can be re-scaled without losing crispness in printing, independent of the size of the output medium.</p>
15790 christoph 37
<p>One of the major advantages of EPS vector import is that some important publishing features will be preserved, for example CMYK and spot colors in EPS files. Scribus will add these to the color list of your document:</p><br>
15778 christoph 38
15790 christoph 39
<table width="100%"><tr><td align="center"><img src="images/eps-imp5.png" title="Colors imported from an EPS file" alt="Colors imported from an EPS file" /></td></tr></table><br>
15778 christoph 40
15790 christoph 41
<p>Likewise, if fonts are embedded in the EPS file, Scribus will use them, if installed on your system. You can then edit text in the imported drawing. If the embedded font is missing, you will be asked for a substitution:</p><br>
<table width="100%"><tr><td align="center"><img src="images/eps-imp4.png" title="EPS font substitution" alt="EPS font substitution" /></td></tr></table><br>
15778 christoph 43
3078 mrdocs 44
15790 christoph 45
8608 mrdocs 46
15790 christoph 47
<li>Importing an EPS file as a vector drawing may take <b>very</b> long, depending on the complexity of the source file. If you choose this import method, Scribus displays a progress dialog, which can give you an impression of the work that&rsquo;s going on in the background, e.g. analyzing the EPS, and generating native Scribus objects:<br>
<table width="100%"><tr><td align="center"><img src="images/eps-imp2.png" title="EPS import progress" alt="EPS import progress" /></td></tr></table><br>
15997 christoph 49
<li>Many EPS files that contain beautiful artwork look like they consist exclusively of vector data. However, if you take a closer look, you will notice that more often than not a &ldquo;vector&rdquo; drawing actually contains bitmap files as well. There can be many reasons for the inclusion of bitmap files in EPS &ldquo;drawings&rdquo;. For example, an artist using Illustrator may have worked with bitmap design elements for performance reasons (using hundreds of vector elements requires much more computing power). Another reason may be that the program that created the EPS has some artistic features that cannot be &ldquo;translated&rdquo; into PostScript, so certain vector elements had to be converted to bitmaps. Also note that many design templates for fliers or postcards combine vector data, bitmaps and fonts into a single file, simply because EPS files can be read by many drawing and page layout programs.<br>
15792 christoph 51
If you are working with this kind of &ldquo;mixed&rdquo; EPS, you need to be very careful! First, when such a file is being imported into Scribus, Ghostscript will convert every single bitmap in the source file into a format that can be read by Scribus. This may take quite some time, but more importantly, Ghostscript will save every converted bitmap on your hard disk in your home directory, and depending on the content of the source EPS, you may run out of disk space faster than you can imagine! Since Scribus files are plain text and do not store any bitmap data, you will also have to distribute all the converted bitmap files with your SLA file if you want to edit or output the file on another computer. To find the required files, look for files with the name of the original EPS and the file extensions PNG, TIF(F), PSD and DAT (the DAT files are so-called &ldquo;raw&rdquo; bitmaps). This can be quite cumbersome, and you can make your life easier by using <i>File > Collect for Output</i>.<br><br>
18520 gpittman 52
<table border="1" align="center" cellpadding="8" cellspacing="0" bordercolor="#888888">
15792 christoph 53
22331 gpittman 55
      <td><span style="color: #cc0000;"><p>A special note for LaTeX users: If your LaTeX file uses bitmap fonts and you create an EPS or PostScript file from your LaTeX source, Ghostscript will create a bitmap for each glyph during import into Scribus, which may result in hundreds or even thousands of tiny bitmaps. If you really need to use a bitmap font, you should either consider using a Scribus <a href="WwRenderframes.html">Render Frame</a> or loading the EPS/PS file into an image frame.<p></span></td>
15792 christoph 56
15830 christoph 60
<li>A second potential issue is bitmap file incompatibility and is most likely to occur with recent versions of Illustrator. Illustrator is often used alongside Photoshop, and the changes made to Photoshop&rsquo;s PSD format since version 6 haven&rsquo;t been published. Thus, Ghostscript&rsquo;s attempts to read or convert those embedded PSDs may fail, which will trigger a warning in Scribus:
15790 christoph 62
<br><table width="100%"><tr><td align="center"><img src="images/eps-imp3.png" title="Bitmap conversion failure" alt="Bitmap conversion failure" /></td></tr></table><br></li>
16010 christoph 63
<li>EPS export quality from other applications can vary widely. Some applications unfortunately like to add their own ingredients to the sauce. The first step for testing a failed import is to open the file in <a href="toolbox6.html">GSview</a>, then press <b>M</b> to watch the messages from Ghostscript while it attempts to open the file. When you have a failure in GSview, the messages can be cryptic sometimes, but they may be a helpful pointer to see what is the problem. The message itself may not be helpful at all to non-developers, but using a search engine like Google can help to find a solution.</li>
15790 christoph 64
<li>Users saving from Adobe Illustrator 9.0 or later are urged to either export to EPS versions compatible with Illustrator version 7 or less <b>or</b> use Illustrator&rsquo;s native AI format for import into Scribus. Why? Illustrator 9+ actually uses PDF as a native format and embeds quite a bit of Adobe-specific data in an EPS, which can cause issues when importing. Scribus is not alone with this issue.</li>
8608 mrdocs 65
15790 christoph 66
<h3>Special EPS files</h3>
16947 craig 67
<p>Some EPS files cannot be opened by Scribus at all, despite being 100% compliant to the specification. These files serve special purposes and may not have any image contents at all. For example, color palette files from commercial vendors are often shipped as EPS files, because these palettes can be read by most graphics programs, including Scribus. Their only content is a list of colors. Other examples are symbol or pattern libraries for Adobe Illustrator. The content of these files will be loaded into the respective resource dialogs in Illustrator, but it can&rsquo;t be accessed directly by most other programs, including Scribus.</p>
10646 cbradney 68
18501 gpittman 69