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 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?