Created
March 31, 2016 12:30
-
-
Save brejoc/36392b4a673d31df797ee2f4fb5be232 to your computer and use it in GitHub Desktop.
fish shell script to convert all files in pwd to grayscale images
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
| function grayscale -d "converts all files in pwd to grayscale images" | |
| rm gray* | |
| for file in (ls) | |
| convert $file -colorspace Gray gray_$file | |
| convert gray_$file -resize 130x130\> gray_$file | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment