add border/padding/margin to export-id or export-page (command line) ?

Asked by Mark

I'm trying to add a transparent border around my exported object or page. I'm not able to find a direct way to do so through the inkscape command line.

currently, I do something like this:
inkscape -z -e out.png -d 90 source.svg -j -i objectName

that works great, but sometimes I would like to output the same object, but with a transparent border of arbitrary width/height .

Is there any way to tell inkscape(command line) to 'pad' the exported canvas around the object?

Thanks,

Mark

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
Mark
Solved:
Last query:
Last reply:
Revision history for this message
Mark (effervescent) said :
#1

Update. tldr; is I used the above export-id-only command above + imagemagick on the exported _.png_ to add the transparent border.
So, problem solved, just not with inkscape.
I could not get inkscape's --export-area to work correctly. I would read out an object's x,y,w,h , and feed it back into export-area, and it would show a blank part of the canvas. The coordinates returned looked wrong/different from the values in the actual svg ( I guess inverted y-values ? ). As well, I without using --export-area, but using --export-id and --export-id-only with --export-area-snap, the output file would show a completely different part of the canvas.

Thank you for the great free(dom) software!