自动快速svg到光栅图像(例如png)的转换 [英] automated fast svg to raster-image (e.g. png) conversion

查看:100
本文介绍了自动快速svg到光栅图像(例如png)的转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种将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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆