title: Use librsvg / rsvg to convert SVG images with ImageMagick
body: <p>I know this question has several answered version here (like this: <a href="https://stackoverflow.com/questions/11592085/imagemagick-convert-svg-to-png-not-working-with-rsvg-enabled">ImageMagick convert SVG to PNG not working with RSVG enabled</a> ), but actually I can't find a real solution to my exact problem. My problem is: I have a specific SVG file (and I will generate more) that ImageMagick inside SVG>PNG convertor process doesn't convert perfectly. So I need to change it to <strong>librsvg</strong>, because it does, I tested these 2 lines with different result:</p>
  
  <pre><code>    convert test.svg test.png  // ( img: http://tinyurl.com/px2lw3v )
      rsvg-convert test.svg -o test.png // ( img: http://tinyurl.com/lreu6sk )
  </code></pre>
  
  <p>I installed HomeBrew. As described here: <a href="https://stackoverflow.com/questions/11592085/imagemagick-convert-svg-to-png-not-working-with-rsvg-enabled">ImageMagick convert SVG to PNG not working with RSVG enabled</a> I used this code to install ImageMagick <code>brew install imagemagick --use-rsvg</code>. I realized that it not installs <strong>librsvg</strong> so I needed to uninstall it and reinstall like this: <code>brew reinstall imagemagick --with-libsrvg librsvg --use-rsvg</code> : this installed imagemagick &amp; librsvg together to my mac. BUT doesn't connected them:  <code>convert -list format | grep SVG</code> resulted as:</p>
  
  <blockquote>
  <pre><code> MSVG  SVG       rw+   ImageMagick's own SVG internal renderer
    SVG  SVG       rw+   Scalable Vector Graphics (XML 2.9.0)
   SVGZ  SVG       rw+   Compressed Scalable Vector Graphics (XML 2.9.0)
  </code></pre>
  </blockquote>
  
  <p>while this: <code>convert -list delegate | grep svg</code> resulted as:</p>
  
  <pre><code>    svg =&gt;          "rsvg-convert" -o "%o" "%i"
  </code></pre>
  
  <p>I installed &amp; uninstalled &amp; reinstalled them several times &amp; ways but nothing changed and the script <code>convert test.svg test.png</code> do it's way without librsvg. I added lines to /usr/local/Cellar/imagemagick/6.8.9-1/lib/ImageMagick/config-Q16/configure.xml with tags but nothing progressed. I don't know what to do and how to connect ImageMagick and force to use different library for <code>convert test.svg test.png</code>.</p>
  
  <p>Thank you for your help.</p>
  
  <p>More information:</p>
  
  <pre><code>    $ which convert
      /usr/local/bin/convert
  
      $ convert -version
      Version: ImageMagick 6.8.9-1 Q16 x86_64 2014-05-12 http://www.imagemagick.org
      Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
      Features: DPC Modules
      Delegates: bzlib freetype jng jpeg ltdl lzma png xml zlib
  
      $ otool -L $(which convert)
      /usr/local/bin/convert:
          /usr/local/Cellar/imagemagick/6.8.9-1/lib/libMagickCore-6.Q16.2.dylib (compatibility version 3.0.0, current version 3.0.0)
          /usr/local/Cellar/imagemagick/6.8.9-1/lib/libMagickWand-6.Q16.2.dylib (compatibility version 3.0.0, current version 3.0.0)
          /usr/local/lib/libfreetype.6.dylib (compatibility version 18.0.0, current version 18.2.0)
          /usr/lib/liblzma.5.dylib (compatibility version 6.0.0, current version 6.3.0)
          /usr/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.5)
          /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
          /usr/local/lib/libltdl.7.dylib (compatibility version 11.0.0, current version 11.0.0)
          /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
  
      $ which rsvg-convert
      /usr/local/bin/rsvg-convert
  
      $ otool -L $(which rsvg-convert)
      /usr/local/bin/rsvg-convert:
          /usr/local/Cellar/librsvg/2.36.3/lib/librsvg-2.2.dylib (compatibility version 39.0.0, current version 39.3.0)
          /usr/local/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version 3001.0.0, current version 3001.8.0)
          /usr/local/lib/libgio-2.0.0.dylib (compatibility version 4001.0.0, current version 4001.0.0)
          /usr/local/lib/libpangocairo-1.0.0.dylib (compatibility version 3601.0.0, current version 3601.5.0)
          /usr/local/lib/libpango-1.0.0.dylib (compatibility version 3601.0.0, current version 3601.5.0)
          /usr/local/lib/libgobject-2.0.0.dylib (compatibility version 4001.0.0, current version 4001.0.0)
          /usr/local/lib/libcairo.2.dylib (compatibility version 11203.0.0, current version 11203.16.0)
          /usr/local/lib/libpng16.16.dylib (compatibility version 29.0.0, current version 29.0.0)
          /usr/local/lib/libcroco-0.6.3.dylib (compatibility version 4.0.0, current version 4.1.0)
          /usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.9.0)
          /usr/local/lib/libgthread-2.0.0.dylib (compatibility version 4001.0.0, current version 4001.0.0)
          /usr/local/lib/libglib-2.0.0.dylib (compatibility version 4001.0.0, current version 4001.0.0)
          /usr/local/opt/gettext/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.2.0)
          /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
  </code></pre>
  
  <ul>
  <li>ImageMagick 6.6.9-1</li>
  <li>Mac OS X 10.9.4</li>
  </ul>