On 2/21/06, Aaron Spike <aaron@...749...> wrote:
It would be really fun to have a single command to export all the layers at once to something like filename-0001-layername.png,
Agreed, that would be a nice option to have. More generally, not all layers, but all objects that are directly below the root - typically they are layers but not necessarily.
but I don't know how widely applicable that would be. According to the man page, --export-id forces the object's bbox for --export-area. I think this makes what I want to do impossible.
Yes, I agree that --export-area should not be ignored with --export-id. We just need to add another option, --export-area-canvas, which is the default in the regular export anyway, but is not the default with --export-id and therefore needs to be settable.
I would suggest we make canvas size ALWAYS default and add an --export-bbox option.
Hmm, no, I still think it makes more sense to export an object's bbox if you tell it to export that object. My solution with --export-area-canvas also requires adding one more area option, but it has the advantage of not changing the current defaults, which is a plus. Also, my new option makes sense with any export, whereas yours only with --export-id, which is slightly less logical.
All these changes are easy to do, the entire export/area logic is in one function. Just please test your changes extensively, with all possible combinations of options, etc.
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org