2011
06.12

I was trying to convert .svg files to .png. No problems with that, but when doing so I lost the transparency of the originals. Not that that really mattered because I had a white background-color anyway, but I had to find out!

  • First be sure to install imagemagick:

    sudo apt-get install imagemagick;
  • And use `convert` to convert:

    convert +antialias -background transparent \
            media-playback-start.svg media-playback-start.png;

3 comments so far

Add Your Comment
  1. Mischa ter Smitten

    Thanks!

  2. Mischa ter Smitten

    This is the right answer I was looking for – should be top hit in google for “imagemagick svg background transparent”

  3. Mischa ter Smitten

    I just tried this – but ended up with a loss in quality on my png and still had a white background….. Any suggestions?