eps, ps export of masks rasterizes most objects (including unmasked objects)
This is the underlying issue that breaks dxf export in 0.92.x and earlier (see #3910 (moved)). Split out to remove all the back and forth in the comments and because that issue no longer affects 1.0+ (dxf export changed).
Issue also reported https://bugs.launchpad.net/inkscape/+bug/967884
Steps to reproduce:
- open Inkscape
- create a bunch of objects
- mask one or more objects
- save as eps or ps
Example files:
- masktest.svg simple test case, rectangles with ellipse masks masktest.eps
- paths3.svg shows that one object after the first mask is not rasterised, because the rasterised image isn't big enough to touch it for some reason paths3.ps
- Neck_Corset_Pattern_A4.svg.gz original test file from gitlab issue, eps export generates two raster images Neck_Corset_Pattern_A4.eps
- launchpad-test.svg original test file from launchpad. launchpad-test.eps
What happened?
- when reopening in inkscape, you can see that many/most objects have been rasterized as one big png.
- the items before (under in z-order) the first mask have their vector forms preserved, but most other items don't
Viewing the files with outline mode in Inkscape
file | svg | eps or ps |
---|---|---|
masktest.svg | ||
paths3.svg | ||
Neck_Corset_Pattern_A4.svg.gz | ||
launchpad-test.svg |
What should have happened?
- items should preserve their vector forms
- I'm not sure about the eps/ps format, but if possible, raster images should be smaller, instead of covering all/most of the page
- clipping works better (but, of course, clips are not masks)
- pdf exports fine
Version Info:
- 1.1-dev (d1a926bd5e, 2020-11-14) Linux Mint 20
- Inkscape 0.48.3.1 r9886 Windows 7