我使用Imagick将几个图像合并为一个,下面是代码:
foreach($this->images as $image) {
$stack->addImage($image['imagick']);
}
$montage = $stack->montageImage(new ImagickDraw(), $placing, $this->resultWidth."x".$this->resultHeight, 0, 0);
$montage->writeImage($result);我得到了这个http://prntscr.com/b54uwe
我试图连接两个图像1和2,我也需要帮助,如何将图像与它们之间的白色空间结合起来?
发布于 2016-05-17 15:22:40
如何将图像与它们之间的空白结合起来?
thumbnail_geometry应该包含宽度/高度和偏移量(例如,WxH+L+T)。
为了消除空白,第三个参数是..。
$stack->montageImage(new ImagickDraw(),
$placing,
$this->resultWidth.'x'.$this->resultHeight.'+0+0',
0,
0);https://stackoverflow.com/questions/37279389
复制相似问题