On Mon, 22 Jan 2007, Jon Phillips wrote:
Date: Mon, 22 Jan 2007 20:16:40 -0800 From: Jon Phillips <jon@...235...> To: bulia byak <buliabyak@...400...> Cc: Inkscape is a vector graphics editor inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] command line operation to reduce document boundry
On Mon, 2007-01-22 at 23:05 -0400, bulia byak wrote:
On 1/22/07, ryan lerch <ryanlerch@...400...> wrote:
i am wondering if there is a command for the inkscape command line that allows an svg's document boundry to be reduced to fit tight around all the elements.
What do you need it for? If for bitmap export, then you already have this option, --export-area-drawing. So while you can't do this as an svg-to-svg conversion, you can crop it when you export the bitmap through Inkscape, which may be sufficient for your case.
Open Clip Art Library needs to be able to modify an SVG so that the canvas size/viewport is the same as the largest width and height of any object in a file.
It is not really that simple and there will be cases where doing that results in even worse looking thumbnails. (I do understand why you are doing this, I remember opening far too many Sodipodi documents and wondering where the drawing was because a very small drawing was stuck at the bottom of an A4 page.)
Also I made a habit of writing my name or other annotation off page so that it would appear only in editing programs like inkscape but not in most cases such as viewers or thumbnailers.
There will always be a few corner cases that look terrible if you try to entirely automate thumbnail generation, guidelines for clipart authors might help reduce the number of dodgy submissions though.