Created
October 29, 2014 20:04
-
-
Save kidsil/828b2fef3f1e5485e875 to your computer and use it in GitHub Desktop.
Convert all PNG image files to grayscale (creating a copy named Filename_gray.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
for f in *.png; do | |
convert ./"$f" -colorspace Gray ./"${f%.png}_gray.png" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment