File: iconify/tools/resize-on-mac.sh

File: iconify/tools/resize-on-mac.sh

#!/bin/sh 
#
# Run on Mac: automatic image resizing (pre-iconify).
#
# Pass arg #1 = the name (sans extension) of a 1024x1024 PNG image. 
# The resizes will appear in folder whose name is in argument #2:
#
# ./resize-on-mac.sh pyedit images-pyedit 
#
# After running this, run iconify against the resized images dir:
#
# python3 iconify.py -mac images-pyedit pyedit
# python3 iconify.py -win images-pyedit pyedit
#
rm -rf 2ドル
mkdir 2ドル
sips -z 16 16 1ドル.png --out 2ドル/1ドル_16x16.png
sips -z 32 32 1ドル.png --out 2ドル/1ドル_32x32.png
sips -z 64 64 1ドル.png --out 2ドル/1ドル_64x64.png
sips -z 128 128 1ドル.png --out 2ドル/1ドル_128x128.png
sips -z 256 256 1ドル.png --out 2ドル/1ドル_256x256.png
sips -z 512 512 1ドル.png --out 2ドル/1ドル_512x512.png
cp 1ドル.png 2ドル/1ドル_1024x1024.png
# to build:
# python3 iconify.py -mac 2ドル 1ドル 
# python3 iconify.py -win 2ドル 1ドル 



AltStyle によって変換されたページ (->オリジナル) /