Imagemagick位置图像在右下角 [英] Imagemagick place image in bottom right corner
本文介绍了Imagemagick位置图像在右下角的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
shell_exec(composite -gravity center logo.png images / test。 png images / test.png);
现在我想在右下角显示水印。
为此我尝试了下面的代码:
composite -geometry - 10-10
但是我无法在右下方显示此内容。
解决方案
使用:
shell_exec(composite -gravity SouthEast logo.png images / test.png images / test.png);
I used the imagemagic to place the watermark image. I used the following code to display the watermark in center.
shell_exec("composite -gravity center logo.png images/test.png images/test.png");
Now I want to display the watermark in bottom right corner.
For this i tried the code:
composite -geometry -10-10
But i couldn't display this in bottom right.
解决方案
Use:
shell_exec("composite -gravity SouthEast logo.png images/test.png images/test.png");
这篇关于Imagemagick位置图像在右下角的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文