Created
June 5, 2017 06:48
-
-
Save bitmess/8c7b631f1d9298745e4ed76ca70b52f0 to your computer and use it in GitHub Desktop.
convert to PNG
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 | |
DIR=./pics | |
if [ ! -d "$DIR" ]; | |
then | |
echo "dir not exist" | |
exit 0 | |
fi | |
for file in $DIR/* | |
do | |
filename="${file%.*}" | |
sips -s format png $file --out $filename.png | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment