Skip to content

Instantly share code, notes, and snippets.

@brejoc
Created March 31, 2016 12:30
Show Gist options
  • Select an option

  • Save brejoc/36392b4a673d31df797ee2f4fb5be232 to your computer and use it in GitHub Desktop.

Select an option

Save brejoc/36392b4a673d31df797ee2f4fb5be232 to your computer and use it in GitHub Desktop.
fish shell script to convert all files in pwd to grayscale images
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