I have the following command which is mean't to merge a photo onto a frame and positio开发者_运维技巧n 10px from the top left corner.
composite -geometry +10+10 frame.jpg photo.jpeg photo_frame.jpg
However, all I get in photo_frame.jpg is a duplicate of photo.jpeg. I have event swapped the 2 around and then I just get the frame.jpg. So, it's not merging them for some reason. Any idea?
This should work:
composite -compose atop -geometry +10+10 photo.jpeg frame.jpg photo_frame.jpg
You probably want to include the option -compose dst-over
. See the following for more usage information: http://www.imagemagick.org/script/composite.php
精彩评论