Imagick 组合图像
Imagick combine images
我用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
我正在尝试连接 2 个图像 1 和 2,我还需要帮助,如何在它们之间没有空格的情况下组合图像?
how to combine images withouw whitespaces between them?
thumbnail_geometry
应包含 width/height 和偏移量(例如 WxH+L+T
)。
要消除空格,第三个参数将是...
$stack->montageImage(new ImagickDraw(),
$placing,
$this->resultWidth.'x'.$this->resultHeight.'+0+0',
0,
0);
我用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
我正在尝试连接 2 个图像 1 和 2,我还需要帮助,如何在它们之间没有空格的情况下组合图像?
how to combine images withouw whitespaces between them?
thumbnail_geometry
应包含 width/height 和偏移量(例如 WxH+L+T
)。
要消除空格,第三个参数将是...
$stack->montageImage(new ImagickDraw(),
$placing,
$this->resultWidth.'x'.$this->resultHeight.'+0+0',
0,
0);