I need to be using RSVG delegate for my conversions.
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"
Any ideas how to set it to the default for convert?
I made it work like this:
--with-rsvg=yes
find more details here: https://gist.github.com/maxivak/1476f7e979879da9f75371a86d5627b5
identify -list configure | grep svg
you should see something like this
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
!NOTE! --with-rsvg=no
which means that ImageMagick couldn't find rsvg in your system.
sudo apt-get install librsvg2-bin
check rsvg works
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.svg
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With