This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# You need to install pngquant | |
# On mac os `brew install pngquant` | |
# copy all directories 15-20 | |
# rename the copied directories with suffix i | |
# ex. i15 , i16 , i17 , i18 ,i19, i20 | |
# This loop will do on only 1 level of nested directories | |
PH_INPUT_DIRS=`ls i15` | |
PH_OUTPUT_DIR="15" |