On Mon, 22 Jan 2007, Jon Phillips wrote:
On Tue, 2007-01-23 at 09:20 +1000, ryan lerch 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.
If there is not one, it sure would be handy for us over at the openclipart library...
cheers,
ryanlerch
Oh wait, this is easy to do...
1.) add a commandline option for this option
2.) select all items on canvas, or if an option passed, selects the group id
3.) calls up the "Fit Page to Selection" command (which can be seen in the document properties dialog).
That should do it...
If I add this, should I add this to the inkscape menu. If so, where should it go in the menu?
might be better to create a verb for fit to selection if it doesn't already exist and use it with the existing select all verb then create an extension script to wrap it and create a menu item that way users can add it relatively easily by dropping it in the appropriate folder and restart inkscape.
but dont ship it by default, a better default would be to improve the relevant dialog for resizing pages. otherwise you risk getting even further into the menu item for every little feature mentatility gimp sometimes suffeers from (thankfully not every item in the GIMP Procedure database has a meu item and similarly not ever Verb in inkscape needs or deserves a menu item).
Hope it makes sense what I'm trying to get at here, even if I might sound a little paranoid about clutter than hasn't happened yet.