/** * * Joins severall imagens in one tab strip * * @param $paths Array of Strings - the paths of the images to join */ function tile(phmagick $p, array $paths = null, $tileWidth = '', $tileHeight = 1) { if (is_null($paths)) { $paths = $p->getHistory(phMagickHistory::returnArray); } $cmd = $p->getBinary('montage'); $cmd .= ' -geometry x+0+0 -tile ' . $tileWidth . 'x' . $tileHeight . ' '; $cmd .= implode(' ', $paths); $cmd .= ' "' . $p->getDestination() . '"'; $p->execute($cmd); $p->setSource($p->getDestination()); $p->setHistory($p->getDestination()); return $p; }