Skip to content

Instantly share code, notes, and snippets.

@obiwankennedy

obiwankennedy/ToGray.sh

Last active Dec 6, 2016
Embed
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
You can’t perform that action at this time.