Adding a border to a .SVG image, then exporting that image?

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
WiWillia
Posts: 1
Joined: 2011-10-27T17:43:23-07:00
Authentication code: 8675308

Adding a border to a .SVG image, then exporting that image?

Post by WiWillia »

Can you add a stroke/border to a vector .SVG image, then export the result as a new .SVG?

Thank you!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Adding a border to a .SVG image, then exporting that ima

Post by fmw42 »

I believe that you need to do that by editing the SVG file. I think IM will rasterize the image to add the border and then have to re-vectorize which will not maintain quality very well.

see
http://www.imagemagick.org/Usage/formats/#vector


However, I don't use SVG that much, so I will defer to any experts on the subject.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Adding a border to a .SVG image, then exporting that ima

Post by anthony »

SVG can be edited using SVG editors.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply