Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- if [ $# -le 2 ]; then
- echo 'convert-tint - script for tinting images, replace any color with given.'
- echo 'Usage: convert-tint source.jpg "#FF0000" target.jpg'
- exit 0
- fi
- source=$1
- color=$2
- target=$3
- # Final command
- # convert source.jpg -fuzz 100% -fill "#FF0000" -opaque black out.png
- convert ${source} -fuzz 100% -fill ${color} -opaque black ${target}
Add Comment
Please, Sign In to add comment