5/16/2023 0 Comments Macoptimizer 2.0![]() This software is released under the terms of the MIT license. as a Figma plugin - Advanced SVG Export.as a Rollup plugin - rollup-plugin-svgo.as a webpack loader – image-webpack-loader Description: Utilities, Optimizers, 676 KB, AlphaSoft, MacOptimizer MacOptimizer vers 1.0.as an OSX Folder Action – svgo-osx-folder-action.Removes elements that are drawn outside of the viewboxįind duplicated elements and replace them with links Remove arbitrary elements by ID or className Removes attributes of elements that match a CSS selector Remove width/ height and add viewBox if it's missing (opposite to removeViewBox, disable it first) Sort children of in order to improve compression Sort element attributes for epic readability Move some group attributes to the contained elements Move elements' attributes to their enclosing group Round numeric values in attributes that take a list of numbers (like viewBox or enable-background) Round numeric values to the fixed precision, remove default px units Prefix IDs and classes with the SVG filename or an arbitrary string Remove useless stroke and fill attributes Remove non-inheritable group's "presentation" attributes Remove unknown elements content and attributes, remove attributes with default values Remove or cleanup enable-background attribute when possibleĬonvert colors (from rgb() to #rrggbb, from #rrggbb to #rgb)Ĭonvert Path data to relative or absolute (whichever is shorter), convert one segment to another, trim useless delimiters, smart rounding, and much moreĬollapse multiple transforms into one, convert matrices to the short aliases, and much more Remove editors namespaces, elements, and attributes ![]() Removes the xmlns attribute (for inline SVG) Move and merge styles from elements to element style attributes exports = require ( 'svgo' ) const config = await loadConfig ( ) // you can also specify a relative or absolute path and customize the current working directory const config = await loadConfig ( configFile, cwd ) Built-in plugins PluginĬleanup attributes from newlines, trailing, and repeating spaces
0 Comments
Leave a Reply. |