Exporting additional empty space when using filter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Low
|
Unassigned |
Bug Description
When I try to export marked objects in Inkscape the PNG export gets much added transparent "padding" on both the left and right. This however only happens when I add a filter (mosty the Drop Shadow) to the PNG import that is also included in what I mark for export, along with everything else. This is shown in the screenshot that's included:
1. In my case I am creating a card. The template is all vector, made in Inkscape.
2. I then import a PNG, place it on the template.
3. I add the drop shadow effect to the PNG import. When I do that, suddenly the import gets added transparency and size on the sides.
4. When marking it all and exporting, the export gets this added transparency included.
In effect, this is a huge problem because when I try to set the size of the export I can't ever get it correct since the export includes x amount of transparent padding, which of course makes the stuff I try to export smaller.
If I remove the filter and mark it all again the extra padding is gone.
tags: |
added: filters-svg selection removed: export filter import |
Changed in inkscape: | |
assignee: | jazzynico (jazzynico) → nobody |
The "added transparency and size" is the filter effects region and needed to not cut off the any edges of applied filter effects. This is intentional - otherwise the drop-shadow could be cut off from exported bitmaps (see bug #168349 and duplicates about cut-off blurs without a better bounding box calculation for bitmap export).
<http:// tavmjong. free.fr/ INKSCAPE/ MANUAL/ html/File- Export. html#id4336766> describes how to use hidden rectangles to select an export region for bitmap export, if you need to cut-off filter effect regions arbitrarily. You could also manually edit the extend of the region in the filter effect dialog (in the Tab 'Filter General Settings' at the bottom).
Proposing to close as 'Invalid' - with regard to the dimensions of the current selection for exporting to bitmap.
Otherwise maybe the report could be turned into a feature request for the 'Shadows and Glows' filter effects extension to calculate the filter effects region more tightly based on the actually entered parameters for blur radius and offset, instead of always using fixed dimensions of 1.5 x 1.5.
But note that there will always be an enlarged selection frame for objects with a drop shadow by nature of that effect.