dongpaipu8394 2016-11-30 06:59
浏览 43
已采纳

imagemagick复合并在一个命令中转换注释

I am trying to overlay other image and add some multiline text on existing image using imagemagic.

want to write like this image where fb name profile picture caption will be writen over existing image http://image2.nametests.com/result_image/f7e10d6619542e1770f1bcac2352d635.jpg

Here is my command.Which produces faulty image.

my original image original.jpg size is 800x600 .i want to overlay small.jpg size 180 px over original.jpg and want to annotate. imagemagic performs the task with given command without any error but output is funny.

here is my output http://imgur.com/a/frSCi

original image http://imgur.com/a/626re

overlay image http://imgur.com/a/mmSep

convert logo: -resize x180  -gravity center  -crop 180x180+0+0  /path/small.jpg  composite -geometry +160+13 /path/original.jpg   /path/picture.jpg  /path/namefinal.jpg

any help will be greatly appreciated

Refer the attached image for clear details. http://imgur.com/a/kAMKL

  • 写回答

1条回答 默认 最新

  • duanji1902 2016-12-30 23:04
    关注

    try

    convert background.jpg overlay.jpg -gravity center -geometry +0-30 -compose over -composite combined.jpg
    

    If you have some overlay image that is larger than the center circle on your background image, then you should create a circular mask image with the size of the overlay image and mask the overlay so that the outside of the circle is transparent, then overlay that transparent image on the background.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 用hfss做微带贴片阵列天线的时候分析设置有问题
  • ¥50 我撰写的python爬虫爬不了 要爬的网址有反爬机制
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥120 计算机网络的新校区组网设计
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 海浪数据 南海地区海况数据,波浪数据
  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等