Guest User

Untitled

a guest
May 20th, 2017
578
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if ! type convert > /dev/null 2>&1; then
  4. echo 'Require: ImageMagick'
  5. exit 1
  6. fi
  7.  
  8. if [ $# -ne 1 ]; then
  9. echo 'Usage: bash appicon-generator.sh ${IMAGE_FILE}'
  10. exit 1
  11. fi
  12.  
  13. file=$1
  14. convert -resize 20x ${file} /tmp/[email protected]
  15. convert -resize 40x ${file} /tmp/[email protected]
  16. convert -resize 60x ${file} /tmp/[email protected]
  17. convert -resize 20x ${file} /tmp/[email protected]
  18. convert -resize 58x ${file} /tmp/[email protected]
  19. convert -resize 87x ${file} /tmp/[email protected]
  20. convert -resize 40x ${file} /tmp/[email protected]
  21. convert -resize 80x ${file} /tmp/[email protected]
  22. convert -resize 120x ${file} /tmp/[email protected]
  23. convert -resize 50x ${file} /tmp/[email protected]
  24. convert -resize 100x ${file} /tmp/[email protected]
  25. convert -resize 150x ${file} /tmp/[email protected]
  26. convert -resize 57x ${file} /tmp/[email protected]
  27. convert -resize 114x ${file} /tmp/[email protected]
  28. convert -resize 171x ${file} /tmp/[email protected]
  29. convert -resize 60x ${file} /tmp/[email protected]
  30. convert -resize 120x ${file} /tmp/[email protected]
  31. convert -resize 180x ${file} /tmp/[email protected]
  32. convert -resize 72x ${file} /tmp/[email protected]
  33. convert -resize 144x ${file} /tmp/[email protected]
  34. convert -resize 216x ${file} /tmp/[email protected]
  35. convert -resize 76x ${file} /tmp/[email protected]
  36. convert -resize 152x ${file} /tmp/[email protected]
  37. convert -resize 228x ${file} /tmp/[email protected]
  38. convert -resize 83.5x ${file} /tmp/[email protected]
  39. convert -resize 167x ${file} /tmp/[email protected]
  40. convert -resize 250.5x ${file} /tmp/[email protected]
Advertisement
Add Comment
Please, Sign In to add comment