Opening EPS with Gradient

Bug #530895 reported by propperdx
42
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
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.

~suv

Revision history for this message
su_v (suv-lp) wrote : [Bug 530895] Opening EPS with Gradient

attaching the files from the original posting in inkscape-user
<http://article.gmane.org/gmane.comp.graphics.inkscape.user/13203>

tags: added: eps gradient importing
su_v (suv-lp)
Changed in inkscape:
status: New → Confirmed
su_v (suv-lp)
Changed in inkscape:
importance: Undecided → Medium
Revision history for this message
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.

Notes:
- The alternative PDF format is experiemental and only available in trunk:
<http://thread.gmane.org/gmane.comp.graphics.inkscape.devel/35781>
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/10052>
- 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
<https://blueprints.launchpad.net/inkscape/+spec/vectorize-embedded-fonts>

Revision history for this message
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.

<http://imgh.us/inflex-i-screenshots.png>
<http://imgh.us/inflex-i-screenshots-outline-view.png>

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)

Revision history for this message
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
Revision history for this message
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
  <http://article.gmane.org/gmane.comp.graphics.inkscape.user/13883>

Changed in inkscape:
assignee: nobody → Alvin Penner (apenner)
milestone: none → 0.49
Revision history for this message
Alvin Penner (apenner) wrote :

no problem, I enjoy playing with mathematics...

Revision history for this message
propperdx (propperdx) wrote :

Thank you for your efforts! I appreciate it.

Tobias

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.