开发者

Imagemagick composite geometry not merging photos

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜