Created
March 20, 2017 22:59
-
-
Save harrytallbelt/425806bd4a202453d674c9b7ebc75246 to your computer and use it in GitHub Desktop.
Bash script to convert coloured photos to (much smaller) grayscale using imagemagick package.
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
#!/bin/bash | |
mkdir results | |
for image in *.jpg | |
do | |
convert -colorspace Gray -interlace Plane -gaussian-blur 0.05 -quality 50% $image ./results/$image | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment