Skip to content

Instantly share code, notes, and snippets.

@Harold2017
Created March 21, 2019 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Harold2017/5a53d940e49f3d7d87e126948b51b86e to your computer and use it in GitHub Desktop.
Save Harold2017/5a53d940e49f3d7d87e126948b51b86e to your computer and use it in GitHub Desktop.
Solve svg rendering problem when composite image with transparent svg

check ImageMagick format:

covert -list format

check ImageMagick config:

convert -list configure | grep svg

install rsvg

apt-get install librsvg2-bin

build ImageMagick with rsvg

wget https://imagemagick.org/download/ImageMagick-6.9.10-34.tar.gz

tar xvzf ImageMagick-6.9.10-34.tar.gz

cd ImageMagick-6.9.10-34

./configure --with-autotrace=no  --with-gslib=yes  --with-fontpath=    --enable-delegate-build=yes  --enable-shared  --enable-static   --with-modules=yes   --without-perl --without-magick-plus-plus --disable-openmp   --with-bzlib=yes   --with-jpeg=yes   --with-png=yes   --with-tiff=yes   --with-xml=yes   --with-rsvg=yes

make

make install

ldconfig /usr/local/lib

convert -version
>>>Version: ImageMagick 6.9.10-34 Q16 x86_64 2019-03-21 https://imagemagick.org
>>>Delegates (built-in): bzlib cairo djvu fontconfig freetype gvc jbig jng jp2 jpeg lcms lqr ltdl lzma openexr png rsvg tiff wmf x xml zlib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment