I would like to trim whitespace from an SVG from the terminal (i.e. so I can script the operation).

So far, I have tried to use Imagemagick, but the result is not satisfactory. For example, trimming the following image using the following command:

convert -trim output-page001.svg output-page001-trim.svg

but the results are unsatisfactory - blocky and ugly.

Does anyone know know of a good way to do it?

Some context:

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.