Skip to content

Instantly share code, notes, and snippets.

@thelebster
Forked from dustintheweb/convert-svg-png
Created June 29, 2017 10:33
Show Gist options
  • Select an option

  • Save thelebster/055c6db4383a8bd68fac744d7ccb4cbe to your computer and use it in GitHub Desktop.

Select an option

Save thelebster/055c6db4383a8bd68fac744d7ccb4cbe to your computer and use it in GitHub Desktop.
Batch Convert SVG to PNG (transparent/ alpha) using ImageMagick
// ImageMagick - Convert SVG to PNG w/ transparency
//
// - open terminal
//
// - confirm you have imagemagick installed
// --- type: convert -v
//
// - cd to folder
//
// - single file
// --- type: convert -background none filename.svg filename.png;
//
// - batch folder
// --- type: mogrify -background none -format png *.svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment