Export with gradient to EPS results in misaligned elements
Bug #743457 reported by
Jason Heeris
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
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