微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

svgo

编程之家收集整理的这个编程导航主要介绍了svgo编程之家,现在分享给大家,也给大家做个参考。

svgo 介绍

SSvgo:基于Nodejs的工具,用于优化SVG矢量图形文件,是一个异步的、事件驱动的网络应用。

svgo安装

[sudo] npm install -g svgo

用法

Usage:

svgo [OPTIONS] [ARGS]

Options:

-h,--help : Help

-v,--version : Version

-i INPUT,--input=INPUT : Input file,"-" for STDIN

-s STRING,--string=STRING : Input SVG data string

-f FOLDER,--folder=FOLDER : Input folder,optimize and rewrite all *.svg files

-o OUTPUT,--output=OUTPUT : Output file or folder (by default the same as the input),"-" for STDOUT

-p PRECISION,--precision=PRECISION : Set number of digits in the fractional part,overrides plugins params

--config=CONfig : Config file or jsON string to extend or replace default

--disable=PLUGIN : disable plugin by name,"--disable=PLUGIN1,PLUGIN2" for multiple plugins

--enable=PLUGIN : Enable plugin by name,"--enable=PLUGIN3,PLUGIN4" for multiple plugins

--datauri=DATAURI : Output as Data URI string (base64,URI encoded or unencoded)

--multipass : Pass over SVGs multiple times to ensure all optimizations are applied

--pretty : Make SVG pretty printed

--indent=INDENT : Indent number when pretty printing SVGs

-r,--recursive : Use with '-f'. Optimizes *.svg files in folders recursively.

-q,--quiet : Only output error messages,not regular status messages

--show-plugins : Show available plugins and exit

Arguments:

INPUT : Alias to --input

GitHub:https://github.com/svg/svgo

网站描述:一个基于 Nodejs 的 SVG 矢量图形优化工具

svgo

官方网站:

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。