Created
July 2, 2019 21:31
-
-
Save darrenpmeyer/136a479a0490356716d90c53540ccc57 to your computer and use it in GitHub Desktop.
One-liner: convert an SVG to a PNG
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# requires: brew install librsvg | |
# inspired by: https://superuser.com/a/723031 | |
# change 1.0 to a zoom factor you want for clean zoom. Exact pixels possible, read man page | |
rsvg-convert -z 1.0 file.svg > file.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment