⚙️ Node.js tool for optimizing SVG files
MIT License
Bot releases are visible (Hide)
Published by GreLI about 8 years ago
removeElementsByAttr
(by IDs or classes) by @elidupuis,addAttributesToSVGElement
by @gjjones,removeXMLNS
(for SVG inlining) by @ricardobeat.collapseGroups
.cleanupIDs
.sortAttrs
by @darktrojan.addClassesToSVGElement
no more repeats classes (by @ricardobeat).Published by GreLI over 8 years ago
Published by GreLI over 8 years ago
<foreignObject>
as well thus fixing bug “Namespace prefix … is not defined“ after applying SVGO.moveGroupAttrsToElems
not to move attributes to g
content if it's referenced (has an id
).collapseGroups
now don't collapse a group if it has an animated attribute (SMIL).Published by GreLI over 8 years ago
removeUnknownsAndDefaults
).--indent
option to style pretty-printed SVG. (e.g. --indent 2
) (by @scurker).currentColor
param to convertColors
plugin for converting values like fill
and stroke
to currentColor
(by @scurker).Published by GreLI over 8 years ago
xlink:href
references are now being checked by local name href
, thus correctly working with another namespace prefix.id
removing with disabled plugins/convertStyleToAttrs.js
.Published by GreLI over 8 years ago
--multipass
option.plugins/moveElemsAttrsToGroup.js
).[1, 0, 0, -1, 0, 0]
(scale(1 -1)
).id
and without stroke-width
aren't being trasformed now since stroke-width
may be applied later.Published by GreLI almost 9 years ago
--quite
to suppress output (by @phihag).lib-cov
folder from the package, which was erroneously included before.<style>
elements with CDATA
content or without content at all.Published by GreLI almost 9 years ago
<style>
elments content with CSSO by @strarsis (svgo still doesn't understand its content)precision
cli-option and full
config.clip-path
.Published by GreLI about 9 years ago
Published by GreLI about 9 years ago
Published by GreLI about 9 years ago
useShortTags
by @bradbarrow. Now svgo can produce correct non-selfclosing tags (useful in HTML in old browsers).Published by GreLI over 9 years ago
url()
.--show-plugins
displaying list of plugins.width
and height
if there is viewBox
) and “removeAttrsPlugin” (by @bennyschudel).Published by GreLI over 9 years ago
transformPrecision
option for better image quality (defaults to 5) in “convertTransform” and “convertPathData” (for the purpose of applying transformations) plugins.translate
, rotate
, scale
.arcto
command) are now correctly being transformed into another arcs without being converting to Bezier curves.rotate()
with optional parameters.<desc>
(by @dennari).clone()
method to JSAPI (by @jakearchibald)Published by GreLI almost 10 years ago
--multipass
command line option which repeatedly applies optimizations like collapsing groups (by @dfilatov)Published by GreLI about 10 years ago
utilizeAbsolute
to false
.--output
option now can be a folder along with --folder
, thanks to @mako-taco.prefix
option in case you want to combine multiple svg later (by @DanielMazurkiewicz).Published by deepsweet over 11 years ago
Published by deepsweet over 11 years ago
Published by deepsweet over 11 years ago
result
attribute from filter primitives (fix #122)