Skip to content

Instantly share code, notes, and snippets.



Last active Dec 6, 2016
What would you like to do?
Convert all images (png) to gray scaled images.
for i in *.png; do name=`echo $i | awk -F '.' '{print $1}'`; convert "$i" -colorspace Gray "$name-gray.png"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment