Masked object cut short on pdf export after document units increased
Summary:
Exporting a SVG with filter effects to a PDF or printing it results in terrible resolution that completely ignores DPI settings configured in the export dialogue.
Instead, the SVG user units are always used as pixels resulting in a terrible resolution in the default configuration.
Scaling up the Document size sometimes even leads to effects just stopping half way and not being applied on the whole area
This might be related to other issues on here, tough I could not find this exact description so I opened a new issue.
(eg. maybe: https://bugs.launchpad.net/inkscape/+bug/743053 , #2112 (closed))
Steps to reproduce:
- open Inkscape
- create multiple layers
- create a path on the first layer that will get an effect
- create a second path on the first layer
- fill the second path with white
- set the second path as the mask of the first path
- put an object (eg. imported image) on the second layer so it is partially occluded by the object on the first layer
- everything still looks completely fine here
- export to PDF or print
- Open Document Properties Dialog
- Increase scale from 1 to 10
- export to PDF or print again
What happened?
Inkscape | PDF after scale set to 10 | |
---|---|---|
![]() |
![]() |
![]() |
What should have happened?
- The effect should be applied correctly independent of the scale of objects
- The configured
96dpi
for effect rasterization in the PDF export dialog should be applied (tracked in tracked in inkscape#252 (closed) / inkscape#698).
Sample attachments:
File with original issue:
Inkscape_bug.svg
Inkscape_bug.pdf
File scaled up 10x:
Inkscape_bug2.svg
Inkscape_bug2.pdf
Version info
Inkscape 1.1 (c68e22c387, 2021-05-23)
GLib version: 2.68.2
GTK version: 3.24.29
glibmm version: 2.66.0
gtkmm version: 3.24.3
libxml2 version: 2.9.12
libxslt version: 1.1.34
Cairo version: 1.17.4
Pango version: 1.48.5
HarfBuzz version: 2.8.1
Poppler version: 20.12.1
OS version: Windows 10 2009
Edited by Nathan Lee