Opening EPS with Gradient

Bug #530895 reported by propperdx on 2010-03-02
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Alvin Penner

Bug Description

> i have problems with opening EPS files with gradient. The file isnt
> rendered correctly. AI-Files are working right.
> I tried to convert the eps file with Ghostscript directly (to png and
> pdf). This works too, so it should be a problem with inkscape.
> Inscape 0.47 Windows 7 or Windows Server 2003
> Ghostscript 8.70 and 8.71

reproduced with Inkscape 0.47+devel r9108 on OS X 10.5.8 (with ps2pdf
from Ghostscript 8.70 and 8.71): Preview in the EPS import dialog looks
fine, but the actually imported gradient seems to be scaled incorrectly.

Please consider filing a bug report.


attaching the files from the original posting in inkscape-user

tags: added: eps gradient importing
su_v (suv-lp) on 2010-03-02
Changed in inkscape:
status: New → Confirmed
su_v (suv-lp) on 2011-02-20
Changed in inkscape:
importance: Undecided → Medium
su_v (suv-lp) wrote :

Workaround with current trunk (> r10051):

1) convert EPS file to PDF on the command line:
   $ ps2pdf -dEPSCrop file.eps file.pdf
2) open the created PDF file from within Inkscape, and make sure to choose
   the alternative file type "Adobe PDF via poppler-cairo (*.pdf)" in the
   'File > Open…' dialog
3) The gradients in Inkscape on-canvas are correctly positioned and
   scaled compared to how the original EPS file displays e.g. in evince,
   gv (gs 9.02) or Apple's Preview.

- The alternative PDF format is experiemental and only available in trunk:
- The thumbnail preview is broken for single-page PDF documents with that file format, but this does not affect the actual import.
- The biggest difference compared to the regular PDF import (AFAICT) concerns text (which is outlined on import): see my comments in the blueprint

su_v (suv-lp) wrote :

Drawback of above described workaround: the file size (saved as SVG) increases a lot, and - as the outline view mode reveals of an example file comparing both import methods - the structure is quit different.


Screenshots done with Inkscape 0.48+devel r10647 on Mac OS X 10.5.8 (i386):
- left: EPS opened as is
  (saved as SVG: 240 KB)
- right: EPS converted to PDF with ps2pdf, opened with 'Adobe PDF via poppler-cairo'
  (saved as SVG: 1.3 MB)

Alvin Penner (apenner) wrote :

For the Adobe PDF import file type, the definition of the GradientTransform element has been modified in bzr rev 10680.
This pdf file type is apparently used as the default for importing eps as well, resulting svg file is attached here.

Changed in inkscape:
status: Confirmed → Fix Committed
su_v (suv-lp) wrote :

@Alvin - thanks a lot for looking into this issue! :)

Fix confirmed with Inkscape 0.48+devel r10680 on Mac OS X 10.5.8 with two other test files:
- the one mentioned in comment #3 (EPS source not in the public)
- from the mailing list, see

Changed in inkscape:
assignee: nobody → Alvin Penner (apenner)
milestone: none → 0.49
Alvin Penner (apenner) wrote :

no problem, I enjoy playing with mathematics...

propperdx (propperdx) wrote :

Thank you for your efforts! I appreciate it.


Bryce Harrington (bryce) on 2015-02-23
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers