当前位置:网站首页>How to trim svg and compress
How to trim svg and compress
2022-08-09 04:49:00 【micromicrofat】
Today I found that the exported svg file has large blanks and transparent parts, as shown below:
I want to edit it to get rid of the useless parts
The tools used are
- sketch or inkscape
- svgo
First adjust the white space
thenSelect "Trim transparent pixels" when exporting
exportLater found that the file is very large
can use svgo to compress
install svgo
>>> npm -g install svgo
Compression
* svgo example.svg -o example.svgLongzhong Zhuochuang data model.svg:Done in 3889 ms!4403.09 KiB - 60.9% = 1722.537 KiB
It can be found that the volume is reduced by 60%
边栏推荐
- ceph创建存储池,映射,删除练习
- 【Harmony OS】【FAQ】鸿蒙问题合集1
- 2022年安全员-A证特种作业证考试题库及在线模拟考试
- 360 评估反馈问题的示范案例
- php uses phpoffice/phpspreadsheet to import and export excel tables
- Divisible property 1
- 2022 Security Officer-B Certificate Exam Practice Questions and Online Mock Exam
- 2022 High Voltage Electrician Exam Questions and Answers
- 全栈代码测试覆盖率及用例发现系统的建设和实践
- A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment
猜你喜欢
equals和==
[21天学习挑战赛——内核笔记](四)——内核常见调试手段(printf、dump_stack、devmem)
GraalVM安装
Pycharm社区版专业版下载安装环境配置【精细到每一个步骤】
人类微生物组和缺失遗传力--读论文
如何剪裁svg并压缩
Harmony OS ets ArkUI 】 【 】 development create a view and building layout
杰理之播歌曲前后音量大小不一样【篇】
ABP中的数据过滤器
Dingding conflicts with RStudio shortcuts--Dingding shortcut settings
随机推荐
JVM垃圾回收机制简介
【Harmony OS】【ARK UI】ETS 上下文基本操作
【暑期每日一题】洛谷 P1216 [USACO1.5][IOI1994]数字三角形 Number Triangles
XJTUSE Professional Course and Experiment Guide
钉钉与RStudio快捷方式冲突--钉钉快捷键设置
阿里云天池大赛赛题(机器学习)——阿里云安全恶意程序检测(完整代码)
阿里云天池大赛赛题(机器学习)——工业蒸汽量预测(完整代码)
基因对疾病的影响规律--读论文
杰理之播歌曲前后音量大小不一样【篇】
【HMS core】【Ads Kit】华为广告——海外应用在国内测试正式广告无法展示
ceph create pool, map, delete exercises
杰理之手机OTG问题【篇】
【Harmony OS】【FAQ】鸿蒙问题合集1
equals和==
360 评估反馈问题的示范案例
P1163 银行贷款
学习笔记_numpy图片基本操作_自用
TCP/IP协议中分包与重组原理介绍、分片偏移量的计算方法、IPv4报文格式
2022 Security Officer-A Certificate Special Work Permit Exam Question Bank and Online Mock Exam
JS-DOM--全局DOM对象document-history-location-navigator-screen-window