I have a large SVG file (about 60 MB, 10000x10000 pixels, but with the potential to get much more), and I want to create, say, a lot of tiled 256x256 PNG images from it (in this example 1600 images, round (10000/256) ^ 2).
Does anyone have an idea on how to do this on a web server (by the way, PHP)? I was thinking about rsvg, but it has no functions to change the bounding box (and I would prefer not to do it manually for each section). ImageMagick can do this, but I'm not very lucky to have it working. Using rsvg to create a large PNG, and then using a tile tool, very large images can work, but I was not lucky to find such a thing! Speed ββis actually not a problem, although this is desirable, so if the worst comes to the worst, I can study the modification of the SVG bounding box for each section. I could see the generation take forever, though!
Does anyone know of any methods for this?
Edit 2016-03-02:
Recently, I returned to the need to answer this question again, and Inkscape seems to be the only tool that can display SVG for a given area at given sizes ( svgexport almost meets these requirements, but does not allow changing the aspect ratio).
My goal was to stitch SVG into 256x256 fragments, and now I have successfully made a script that can alternate an arbitrarily large SVG, making repeated renderings in inkscape about 16,000 x 16,000 and breaking up the resulting resulting images, I successfully executed SVG, where sizes over 500,000 x 500,000 pixels - no problems with memory usage (it takes a lot of time!)
linux php imagemagick svg
Robert
source share