由买买提看人间百态

topics

全部话题 - 话题: rsvg
(共0页)
M*********9
发帖数: 15637
1
来自主题: Linux版 - 问题
Thank you all for your response.
$ which rsvg-convert
$ bin/rsvg-convert
It seems the system has rsvg-convert. I have converted svg to png via "rsvg
file.svg file.png". Since I have a series of svg files, I wonder if I can
find an easier way.
It seems i is not defined correctly.
X***n
发帖数: 366
2
来自主题: Linux版 - 问题
Have you installed rsvg-convert yet?
If not, in ubuntu 'sudo apt-get install librsvg2-bin'.
Then 'which rsvg-convert'
M*********9
发帖数: 15637
3
来自主题: Linux版 - 问题
我想把svg转成png, 网上看来的是要
$ for i in *; do rsvg-convert $i -o `echo $i | sed -e 's/svg$/png/'`; done
怎么说 command not found? Thanks.
c****d
发帖数: 116
4
来自主题: Linux版 - 问题
which is a Linux command, which you can find paths for the command/app.
In your case, it looks like your system does not have rsvg-convert.
You need install it.
a**i
发帖数: 135
5
来自主题: Linux版 - 问题
那就不用bash :)
find . -name "*.svg"|sed -e "p;s/\(.*\)svg$/-o \1png/"|xargs -n3 rsvg-
convert
M*********9
发帖数: 15637
6
来自主题: Linux版 - 问题
还是不灵
$ find . -name "*.svg"|sed -e "p;s/(.*)svg$/-o 1png/"|xargs -n3 rsvg-convert
Illegal variable name.
M*********9
发帖数: 15637
7
来自主题: Linux版 - 问题
bash完, 就灵乐, 哈哈。。。
bash
bash-4.1$ for i in `ls *.svg`;do rsvg-convert $i -o `echo $i | sed -e 's/svg
$/png/'`; done
(共0页)