Last active
December 24, 2022 18:28
-
-
Save sryze/bfba96748fc64cc95feb1e165b0f7288 to your computer and use it in GitHub Desktop.
Script for generating iOS app icons of all sizes from a single SVG image via Inkscape
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
#!/bin/sh | |
INKSCAPE=/Applications/Inkscape.app/Contents/MacOS/inkscape | |
mkdir -p converted | |
for size in $(echo 512 40 60 58 87 80 120 180 20 40 29 58 76 152 167 1024); do | |
$INKSCAPE --export-type png --export-filename converted/AppIcon_${size}x${size}.png -w $size AppIconUpdated.svg | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment