将SVG文件转换为多个不同大小的PNG文件 [英] Convert SVG file to multiple different size PNG files

查看:316
本文介绍了将SVG文件转换为多个不同大小的PNG文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个SVG格式的徽标图片,我想知道是否有办法生成多个不同大小的png文件。

I have a logo image in SVG format and I am wondering if theres a way to generate multiple different sized png files.

例如,我设置了20个不同的宽度和高度,它会生成20个PNG文件。好吧,如果我必须一次做5张图片。

Eg, I set 20 different width and height and it generates 20 PNG files. It okay if I have to do it 5 images at a time.

我安装了插画家,无法弄清楚如何在上面做这件事。

I have illustrator installed and cant figure out how to do this on it.

感谢您的帮助!

推荐答案

我不知道Illustrator,但使用 Inkscape命令行选项。例如,使用Ruby:

I don't know about Illustrator, but this should be easy using the Inkscape command line options. For example, using Ruby:

$ ruby -e '[10,100,200].each { |x| `inkscape --export-png logo#{x}.png -w #{x} logo.svg` }'

这篇关于将SVG文件转换为多个不同大小的PNG文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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