I'm having a hard time trying to figure out how to use Interactive mode effectively. My problem is I want to export small ares of a large SVG image as 256 x 256 png tiles. The tiles will be used for an web based map. I can create a batch file to utilize the command line options, for example:
inkscape d:\map.svg --export-png=d:\0.png --export-area=0:187464.567:6047.244:193511.811 -w256 -h256
inkscape d:\map.svg --export-png=d:\1.png --export-area=0:181417.323:6047.244:187464.567 -w256 -h256
However loading the map each time takes just under 3 minutes. Due to the large amount of tiles I want to process this could take months and thats spreading the load across multiple computers.
This is where I hoped Interactive mode would help me. For example if I load the map into Inkscape's UI as normal (it takes 3 mins as expected), and input the area I'm interested in, I can then export a 256 x 256 tile in a matter of seconds. But if I try to do the same in Interactive mode, it pretty much takes as long as the command line.
I'm hoping the problem is down to me not using Interactive mode correctly, but there isn't a great deal of information on how your supposed to use it, so I'm at a bit of a loss.
To reproduce the problem you can follow these seps:
1) Download the attached file or download the zipped version here
https://www.4umaps.com/topomaps/data/svg_demomap.zip (file is called inkscape.svg). This is just an example of the sort of file sizes I'm dealing with.
2) Open the file in Inkscape (will take a few minutes) and manulally enter the follwoing to define an area for export:
x0: 6000
y0: 6000
x1: 16000
x2: 16000
Width: 256
Height: 256
3) Now export the file, for me it completes in a matter of seconds.
For Interactive mode I do the following:
1) Open the command line and execute:
inkscape inkscape.svg --shell
2) In the Inkscape prompt I then call:
inkscape.svg --export-png=test1.png --export-area=6000:6000:16000:16000 -w256 -h256
inkscape.svg --export-png=test2.png --export-area=6100:6000:16100:16000 -w256 -h256
inkscape.svg --export-png=test3.png --export-area=6200:6000:16200:16000 -w256 -h256
inkscape.svg --export-png=test4.png --export-area=6000:6100:16000:16100 -w256 -h256
inkscape.svg --export-png=test5.png --export-area=6000:6200:16000:16200 -w256 -h256
But the above takes just as long as if I load each file individually, roughly 15 minutes for all 5. Whether I call each line individually or paste all 5 in one go, it still takes 3 minutes to process each line. Where as if I just entered them manually in the GUI it could be done in seconds. This seems to make the Interactive mode redundant as its no faster than using the command line?
But like I said I'm hoping thats its just down to me not using it correctly and that Interactive mode can provide some significant time savings?
Thanks in advance