我需要使用RSVG代表进行转换。
convert -list format | grep SVG
MSVG SVG rw+ ImageMagick's own SVG internal renderer
SVG SVG rw+ Scalable Vector Graphics (XML 2.9.3)
SVGZ SVG rw+ Compressed Scalable Vector Graphics (XML 2.9.3)
identify -list delegate | grep "svg ="
svg => "rsvg-convert" -o "%o" "%i"有什么想法,如何将其设置为默认转换吗?
发布于 2019-02-22 16:26:06
我把它做成这样:
--with-rsvg=yes在这里可以找到更多细节:https://gist.github.com/maxivak/1476f7e979879da9f75371a86d5627b5
identify -list configure | grep svg你应该看看这样的东西
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-jemalloc=no --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-rsvg=no --with-perl=no 注意!--with-rsvg=no,这意味着ImageMagick在您的系统中找不到rsvg。
sudo apt-get install librsvg2-bin检查rsvg工厂
rsvg-convert my.svg > my.png# download
wget https://imagemagick.org/download/ImageMagick.tar.gz
# untar
tar xvzf ImageMagick.tar.gz
#
cd ImageMagick-7.0.8
# !!! IMPORTANT. option `--with-srvg=yes` !!!
./configure --with-rsvg=yes
#
make
sudo make install
sudo ldconfig /usr/local/lib/usr/local/bin/identify my.svghttps://stackoverflow.com/questions/37598319
复制相似问题