Skip to content

Instantly share code, notes, and snippets.

@brettkelly
Created February 12, 2020 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettkelly/2380cbe7d15061f5c486635d657d957a to your computer and use it in GitHub Desktop.
Save brettkelly/2380cbe7d15061f5c486635d657d957a to your computer and use it in GitHub Desktop.
Grayscale and blur an image
#!/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