Guest User

Untitled

a guest
Oct 18th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. if [ $# -le 2 ]; then
  4. echo 'convert-tint - script for tinting images, replace any color with given.'
  5. echo 'Usage: convert-tint source.jpg "#FF0000" target.jpg'
  6. exit 0
  7. fi
  8.  
  9. source=$1
  10. color=$2
  11. target=$3
  12.  
  13. # Final command
  14. # convert source.jpg -fuzz 100% -fill "#FF0000" -opaque black out.png
  15.  
  16. convert ${source} -fuzz 100% -fill ${color} -opaque black ${target}
Add Comment
Please, Sign In to add comment