makeWatchIcons.sh 1001 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. #############################################################################
  3. # makeWatchIcons.sh
  4. #
  5. # Call with the original image path from which to generate the image.
  6. # Saves all icons required for Apple Watch Apps to the current directory.
  7. #############################################################################
  8. # Copyright (c) 2015 VideoLAN. All rights reserved.
  9. # $Id$
  10. #
  11. # Author: Tobias Conradi <videolan # tobias-conradi.de>
  12. #
  13. # Refer to the COPYING file of the official project for license.
  14. #############################################################################
  15. sips $1 --out AppIcon24@2x.png --resampleWidth 48
  16. sips $1 --out AppIcon27.5@2x.png --resampleWidth 55
  17. sips $1 --out AppIcon29@2x.png --resampleWidth 58
  18. sips $1 --out AppIcon29@3x.png --resampleWidth 87
  19. sips $1 --out AppIcon40@2x.png --resampleWidth 80
  20. sips $1 --out AppIcon44@2x.png --resampleWidth 88
  21. sips $1 --out AppIcon86@2x.png --resampleWidth 172
  22. sips $1 --out AppIcon98@2x.png --resampleWidth 196