SVG Tile Slicing

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jcox

SVG Tile Slicing

Post by jcox »

Good day,

I have been trying to find a way to convert subsections out of an SVG file. I want something similar to cropping a raster image. Apparently the units for the crop operator is only based on pixels so it does not work with vector images.

Is it possible to convert only a subsection of a SVG image to a raster file with IM?

P.S. I have already tried the batch command line options of Inkscape and Batik, but they are too slow for my needs. My purpose is to chop an SVG file into thousands of subsection bitmap tiles for an application.

Thanks for any help in advance.
Joe
jcox

Re: SVG Tile Slicing

Post by jcox »

I found the answer to my question. A -size or -resize operator is required to establish the SVG file in pixel dimensions. Then the -crop operation will be applied.
Post Reply