Skip to content

Instantly share code, notes, and snippets.

@motionbug
Last active October 9, 2018 14:00
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 motionbug/8ffd2d7ba7b1b68314c4b01007e36572 to your computer and use it in GitHub Desktop.
Save motionbug/8ffd2d7ba7b1b68314c4b01007e36572 to your computer and use it in GitHub Desktop.
Create png from icns file
#!/bin/bash
#great little script to just use system icons for scripts
ICNS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/Sync.icns"
LOGO="/private/tmp/logo.png"
convertlogo=$(sips -z 512 512 -s format png ${ICNS} --out ${LOGO})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment