コード例 #1
0
ファイル: Compose.php プロジェクト: NareshChennuri/pyng
 /**
  *
  * Joins severall imagens in one tab strip
  *
  * @param $paths Array of Strings - the paths of the images to join
  */
 function tile(JO_Phpthumb_Factory_Imagick_Phmagick $p, array $paths = null, $tileWidth = '', $tileHeight = 1)
 {
     if (is_null($paths)) {
         $paths = $p->getHistory(JO_Phpthumb_Factory_Imagick_Phmagick_History::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;
 }