Page 1 of 1
Is there a feature to draw SVG paths like handwriting?
Posted: 2016-07-21T15:26:10-07:00
by paul7755
Hi there!
I hope, my question is allowed in this discussion board.
Is there already a feature in ImageMagick somewhere, which makes SVG paths look like they have been written by hand?
Right now, my import looks like this:
When I aim for something looking more like this:
Any help or advice for the right direction would be highly appreciated.
Re: Is there a feature to draw SVG paths like handwriting?
Posted: 2016-07-21T15:48:03-07:00
by snibgo
IM is a raster image processor. It won't modify SVG paths. It ran only rasterise them.
When rasterised, it can do whatever you want, eg blur and apply levels, but I can't see what might make your required output from that input.
Re: Is there a feature to draw SVG paths like handwriting?
Posted: 2016-07-22T03:03:06-07:00
by paul7755
Thank you for the reply! However, I'm sorry, my question might have been unclear.
snibgo wrote:IM is a raster image processor. It won't modify SVG paths.
ImageMagick doesn't have to modify my SVG paths. I'm looking for a way to "paint them differently".
Right now, ImageMagick "paints" the path like the first image above when I import the SVG path and save it as a PNG file. This works well.
But in the end, I'd like to have an PNG file which looks like the second image above. I'd like to use ImageMagick to "paint" the path like handwriting.
Re: Is there a feature to draw SVG paths like handwriting?
Posted: 2016-07-22T04:33:02-07:00
by snibgo
IM will paint the path it is given. It won't "paint them differently".
Inkscape may contain a feature to do that.
Re: Is there a feature to draw SVG paths like handwriting?
Posted: 2016-07-24T04:14:53-07:00
by paul7755
snibgo wrote:IM will paint the path it is given. It won't "paint them differently".
Oh, okay. I'm sorry. I must have misunderstood a principal behind SVGs. I thought, SVGs "store" paths and I would be able to tell ImageMagick to use the path to know where to paint and use a - for example red and 10 px wide - "brush stroke" along the path.
Re: Is there a feature to draw SVG paths like handwriting?
Posted: 2016-07-24T07:13:16-07:00
by snibgo
Within the SVG language, you can have a "defs" section that defines paths each with an ID, then later in the SVG you can draw any of those path IDs with whatever characteristics (stroke wdth, colour etc) you want. Or you can use a path ID as the basis for doing something else, eg for laying out text.
I don't know of anything in SVG that does what you want, but that's the place to look, not ImageMagick.