Last active
April 7, 2016 10:52
-
-
Save adsr303/8710833 to your computer and use it in GitHub Desktop.
Complex image operations using ImageMagick
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 | |
convert "$1" \( +clone -colorspace gray -negate -blur 0x300 \) \ | |
-compose softlight -composite "$2" |
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 | |
# First composite is a grain extract blend. | |
# Second composite is a grain merge blend. | |
convert "$1" \( +clone -colorspace gray \( +clone -blur 0x3 \) \ | |
-compose mathematics -define compose:args='0,-1,1,0.5' -composite \) \ | |
-compose mathematics -define compose:args='0,1,1,-0.5' -composite "$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment