Been reading and trying to find a solution, but I can't find it.
I have 4 images:
1. profile image
3. image to overlay over the masked profile image (like a wrapped plastic png)
4. the background image
This code makes it look great (finally;-)), but, the mask is in the upper left corner of the image. I'd like to be able to move it around freely."/usr/bin/magick \( ". $profile_pic ." -resize 300 \
". $mask ." -compose CopyOpacity -composite \
". $mask_overlay ." -compose Over -alpha set -background none -rotate -5 \) -composite \
\( ". $input ." -resize 600 \) +swap -compose Over -composite \
" . $output;
Is there no such easy way?
I have read this as well:
"Unfortunately while "-gravity" and "-geometry" settings will let you re-position the source image, the mask image is NOT re-positioned, and remains aligned with the destination image."
This is a solution given, but I don't know how to implement it in my code, my attempts failed:
convert tile_aqua.jpg tile_water.jpg \
\( -background black -splice 10x25+0+0 moon_mask.gif \) \
I have tried various versions of moving my Grouped masking around but that produced off-set results