Created
December 18, 2012 08:58
-
-
Save Boldewyn/4326313 to your computer and use it in GitHub Desktop.
Apply an alpha mask from mask.img on an image source.img and store in result.img.
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/sh | |
SOURCE=$1 | |
MASK=$2 | |
TARGET=$3 | |
convert "$SOURCE" "$MASK" -compose CopyOpacity -composite "$TARGET" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment