Page 1 of 1
Output SVG
Posted: 2017-03-01T14:46:43-07:00
by hivens
HI,
I've seen lots of imagemagick examples which output to JPG, PNG or even convert an SVG to PNG. However I haven't been able to find any examples of imagemagick generating SVG files. Is this something that can be done in imagemagick?
Thank you.
Re: Output SVG
Posted: 2017-03-01T14:48:59-07:00
by magick
ImageMagick is primarily a pixel processor. It can read many vector formats but destroys the vectors and replaces them with pixels. Although it can write SVG, it is creating virtual pixels which is likely want you want. If you want to generate SVG, try inkscape.
Re: Output SVG
Posted: 2017-03-01T15:06:41-07:00
by snibgo
As magick says.
Creating an SVG file is easy, for example:
At one time, this created an SVG containing one circle per pixel. These days (v6.9.5-3) it creates an SVG with embedded raster image. Neither is particularly useful.
Inkscape has a process for vectorizing raster images. Programs Potrace and AutoTrace do a similar job. I recently published "Lines, points and curves" about a related problem, vectorizing lines.