changing fill color in an SVG before antialiasing

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: changing fill color in an SVG before antialiasing

Post by fmw42 »

I am no expert on SVG, but I think it is an editable text file with XML codes inside. You probably could find the codes for the colors you want to change and edit them and save, then convert to png with IM.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: changing fill color in an SVG before antialiasing

Post by magick »

A proper solution would be to take the command line settings and create a CSS to apply to the SVG when it is rendered. However this feature is not currently supported.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: changing fill color in an SVG before antialiasing

Post by anthony »

Also IM will always render a SVG as a raster image, as IM is a raster image processor.

You are better off looking for a SVG editor and changing things so that it remains a SVG.

See A word about Vector Image formats
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply