Export with gradient to EPS results in misaligned elements

Bug #743457 reported by Jason Heeris
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Triaged
Low
Unassigned

Bug Description

The attached file has two sets of two elements with the same Y-position, but one has a gradient on it. Saving as an EPS results in the elements being visibly misaligned (see attached EPS and PNG screenshot). EPS was viewed in Evince.

Save options are:
  * Postscript Level 3
  * Convert text to paths: YES
  * EPS+LaTeX... : NO
  * Rasterize filter effects: YES
  * Resolution for rasterization (dpi): 90
  * Export area is drawing: YES
  * Export area is page: YES
  * Limit export... : (blank)

System is Debian Squeeze/Wheezy, Inkscape is 0.48.1-2

Tags: exporting eps
Revision history for this message
Jason Heeris (detly) wrote :
Revision history for this message
Jason Heeris (detly) wrote :
Revision history for this message
Jason Heeris (detly) wrote :
su_v (suv-lp)
tags: added: eps exporting
Revision history for this message
su_v (suv-lp) wrote :

Postscript-based file formats do not support transparency, gradients with transparent stops need to be rasterized on export to EPS/PS to keep the same visual appearance.

The y-difference here seems to be due to unit conversions (SVG page size being px-based, and Postscript PageBoundingBox size pt-based integers [1]). If I change the page size to integer pt units, the paths and the fallback image (rectangles with gradients are rasterized) are properly aligned (verified with evince 2.30.3, Ghostscript 9.01 and Apple's Preview.app)

[1] see comment #45-47 in bug #380501

Revision history for this message
su_v (suv-lp) wrote :
Revision history for this message
su_v (suv-lp) wrote :
Revision history for this message
su_v (suv-lp) wrote :

reproduced with Inkscape 0.48.1 and 0.48+devel r10129 on OS X 10.5.8 (cairo 1.10.2)

Changed in inkscape:
importance: Undecided → Low
status: New → Triaged
Revision history for this message
SebHoll (seb-hollington) wrote :

~suv - could you please post a patch for this fix?

I'm using Inkscape to export graphics as PDFs to include in LaTeX and I'm getting a similar offset problem that I'm hoping might be corrected by this too? I'm on Mac OS X 10.6.7 using the latest development revision (downloaded fresh today).

I've attached a PDF and the set of files used to generate it.

Any help would be greatly appreciated as my dissertation deadline is soon. :(

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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