Skip to content

Instantly share code, notes, and snippets.

@JerzyPuchalski
JerzyPuchalski / svg-to-android.sh
Created February 9, 2016 19:36 — forked from deepankarb/svg-to-android.sh
A script to generate android assets from a SVG file. Requires inkscape to resize and convert.
#!/bin/bash
if [[ -z "$1" ]];
then
echo "No SVG file specified. Exiting."
exit -1
fi
ispng=$(file $1)
echo $ispng | grep -q SVG