Skip to content

Instantly share code, notes, and snippets.

@sryze
Last active December 24, 2022 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sryze/bfba96748fc64cc95feb1e165b0f7288 to your computer and use it in GitHub Desktop.
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
#!/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