Image magick overlaying images

吃可爱长大的小学妹 提交于 2019-12-22 06:47:58

问题


I have two images, one is the overlay, lets say Image A with transparency, and another image B, I have to place the overlay image A over image B, so that some part of image B is visible through the transparent part of image A, I also have to move the image B according to some parameters, How can I achieve this with image magick


回答1:


I was able to achieve it by the following command

composite -compose Dst_Over -geometry 520x320+20+80 image.jpeg overlay.png final.png

the key here -compose Dst_Over, which puts the image under the background (overlay.png) and the geometry options let you move the image.



来源:https://stackoverflow.com/questions/13917250/image-magick-overlaying-images

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!