Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个图像,一个是覆盖,假设图像 A 具有透明度,另一个图像 B,我必须将覆盖图像 A 放在图像 B 上,以便图像 B 的某些部分通过图像 A 的透明部分可见,我还必须根据一些参数移动图像 B,如何使用图像魔法实现这一点
我能够通过以下命令实现它
composite -compose Dst_Over -geometry 520x320+20+80 image.jpeg overlay.png final.png
这里的关键-compose Dst_Over,将图像置于背景下 ( overlay.png),几何选项可让您移动图像。
-compose Dst_Over
overlay.png