开发者

Imagemagick composite geometry not merging photos

开发者 https://www.devze.com 2023-02-26 04:01 出处:网络
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.

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

精彩评论

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