Mathematica中文论坛-非官方

标题: 豆粑粑 convert and resize svg to png [打印本页]

作者: meatball1982    时间: 2023-3-7 15:11
标题: 豆粑粑 convert and resize svg to png
DL的svg,需要一个清楚的,主分辨率的图。
以前只知道svg是失量图,怎么处理,没作过。
现在
方法1
gimp 可搞,在导入的时候,直接修改尺寸,然后存图(先改一下dpi)

方法2
  1. rsvg-convert IamInput.svg -w 2000 -h 2000 -f png --dpi-x 300 --dpi-y 300 -o IamOutput.png
复制代码



https://formulae.brew.sh/formula/librsvg
在mac

  1. brew install librsvg
复制代码



作者: meatball1982    时间: 2023-3-7 15:58
或是直接用另一个包
  1. https://github.com/vieron/svg-resizer
复制代码







欢迎光临 Mathematica中文论坛-非官方 (http://ilovemathematica.com/) Powered by Discuz! X3.2