Search code examples
svggraphicsimagemagickrasterinkscape

appending svg images produces rastered image


I'm trying to concatenate svg images to produce an output svg image like so

convert -append in1.svg in2.svg output.svg

which I got from https://superuser.com/questions/290656/combine-multiple-images-using-imagemagick

enter image description here However, this produces a rastered image (on right), which is not what I need. The effect is more noticeable if you click on the image.

How can I append SVG images without the rastering effect?


Solution

  • I found a python script which appends SVG images exactly how I wanted.

    https://github.com/astraw/svg_stack

    the example command line usage is:

    python svg_stack-master/svg_stack.py --direction=v --margin=0 in1.svg in2.svg  > out.svg