Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if ! type convert > /dev/null 2>&1; then
- echo 'Require: ImageMagick'
- exit 1
- fi
- if [ $# -ne 1 ]; then
- echo 'Usage: bash appicon-generator.sh ${IMAGE_FILE}'
- exit 1
- fi
- file=$1
- convert -resize 20x ${file} /tmp/[email protected]
- convert -resize 40x ${file} /tmp/[email protected]
- convert -resize 60x ${file} /tmp/[email protected]
- convert -resize 20x ${file} /tmp/[email protected]
- convert -resize 58x ${file} /tmp/[email protected]
- convert -resize 87x ${file} /tmp/[email protected]
- convert -resize 40x ${file} /tmp/[email protected]
- convert -resize 80x ${file} /tmp/[email protected]
- convert -resize 120x ${file} /tmp/[email protected]
- convert -resize 50x ${file} /tmp/[email protected]
- convert -resize 100x ${file} /tmp/[email protected]
- convert -resize 150x ${file} /tmp/[email protected]
- convert -resize 57x ${file} /tmp/[email protected]
- convert -resize 114x ${file} /tmp/[email protected]
- convert -resize 171x ${file} /tmp/[email protected]
- convert -resize 60x ${file} /tmp/[email protected]
- convert -resize 120x ${file} /tmp/[email protected]
- convert -resize 180x ${file} /tmp/[email protected]
- convert -resize 72x ${file} /tmp/[email protected]
- convert -resize 144x ${file} /tmp/[email protected]
- convert -resize 216x ${file} /tmp/[email protected]
- convert -resize 76x ${file} /tmp/[email protected]
- convert -resize 152x ${file} /tmp/[email protected]
- convert -resize 228x ${file} /tmp/[email protected]
- convert -resize 83.5x ${file} /tmp/[email protected]
- convert -resize 167x ${file} /tmp/[email protected]
- convert -resize 250.5x ${file} /tmp/[email protected]
Advertisement
Add Comment
Please, Sign In to add comment