Skip to content

Instantly share code, notes, and snippets.

@gwennguihal
Created May 15, 2014 10:29
Show Gist options
  • Save gwennguihal/1138dbec424d260f9d8b to your computer and use it in GitHub Desktop.
Save gwennguihal/1138dbec424d260f9d8b to your computer and use it in GitHub Desktop.
IOS AppIcon generator
#!/bin/bash
f=$(pwd)
sips --resampleWidth 40 "${f}/${1}" --out "${f}/Icon-40.png"
sips --resampleWidth 80 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 120 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 29 "${f}/${1}" --out "${f}/Icon-29.png"
sips --resampleWidth 58 "${f}/${1}" --out "${f}/[email protected]"
sips --resampleWidth 50 "${f}/${1}" --out "${f}/Icon-Small-50.png"
sips --resampleWidth 76 "${f}/${1}" --out "${f}/Icon-76.png"
sips --resampleWidth 152 "${f}/${1}" --out "${f}/[email protected]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment