Last active
December 24, 2015 01:29
-
-
Save cfflymolo/6724200 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
FOLDER_TARGET="/Users/robertcolin/Developer/Unity/rcolin_CampDiscovery_Workspace/Assets/StreamingAssets/Images/Objects/*" | |
for f in $FOLDER_TARGET | |
do | |
if [ -d "$f" ] | |
then | |
for ff in $f/*.png; do | |
echo "resizing $ff to half size" | |
convert $ff -resize 50% $(dirname "$ff")/$(basename "$ff" .png).png; | |
done | |
fi | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment