Created
February 12, 2020 22:16
-
-
Save brettkelly/2380cbe7d15061f5c486635d657d957a to your computer and use it in GitHub Desktop.
Grayscale and blur an image
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
#!/bin/bash | |
filename=$(basename -- "$1") | |
extension="${filename##*.}" | |
plain="${filename%.*}"; | |
newfile="${plain}.blurred.${extension}"; | |
convert ${filename} -blur 0x4 -set colorspace Gray -separate -average ${newfile} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment