Skip to content

Instantly share code, notes, and snippets.

@wtnabe
Created July 8, 2023 22:18
Show Gist options
  • Save wtnabe/783d4405ce262c884521fc47a478811e to your computer and use it in GitHub Desktop.
Save wtnabe/783d4405ce262c884521fc47a478811e to your computer and use it in GitHub Desktop.
resvgを使ってSVGからPNGを作るテンプレ
#! /bin/sh
SRC=$1
DEST=`basename ${SRC} .svg`.png
resvg --dpi 350 --zoom 2 --background '#ffffff' $SRC $DEST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment