自动快速svg到光栅图像(例如png)的转换 [英] automated fast svg to raster-image (e.g. png) conversion
问题描述
我正在寻找一种将Shell脚本(bash)中的svg转换为光栅图像(例如png)的工具.
I'm looking for a tool to convert an svg to a raster-image (png for instance) from a shell script (bash).
目前,我使用的inkscape --export-png=image.png --export-area-drawing image.svg
效果不错,但速度非常慢.
Currently I use inkscape --export-png=image.png --export-area-drawing image.svg
which works well, but is terribly slow.
搜索Web和SO只能使我的库在某种编程语言(php,js,C#等)中执行此操作.我可以为自己编写一个小程序来执行此操作,但是我更喜欢现有的工具(除了inkscape之外,因为它很慢).
Searching the Web and SO only gets me libraries to do this inside some programming language (php, js, C#, ...). I could write myself a small program to do this, but I would prefer an existing tool (other than inkscape as it is quite slow).
推荐答案
可以使用librsvg2
所有详细信息均在此处
这篇关于自动快速svg到光栅图像(例如png)的转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!