note 91465 modified in function.imagick-writeimages by danbrown

From: Date: Thu, 11 Jun 2009 12:49:40 +0000
Subject: note 91465 modified in function.imagick-writeimages by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156769@lists.php.net to get a copy of this message
The second parameter spicifies if the object is write in multipage file (true) or split every page in a single file (false). Example: <?php $multiTIFF = new Imagick(); $files = scandir($mytifspath); foreach( $files as $f ) { $auxIMG = new Imagick(); $auxIMG->readImage($mytifspath.$f); $multiTIFF->addImage($auxIMG); } //file multi.TIF $multiTIFF->writeImages('multi.TIF', true); //files multi-0.TIF, multi-1.TIF, ... $multiTIFF->writeImages('multi.TIF', false); ?> --was-- The second parameter spicifies if the object is write in multipage file (true) or split every page in a single file (false). Example: $multiTIFF = new Imagick(); $files = scandir($mytifspath); foreach( $files as $f ) { $auxIMG = new Imagick(); $auxIMG->readImage($mytifspath.$f); $multiTIFF->addImage($auxIMG); } //file multi.TIF $multiTIFF->writeImages('multi.TIF', true); //files multi-0.TIF, multi-1.TIF, ... $multiTIFF->writeImages('multi.TIF', false); http://php.net/manual/en/function.imagick-writeimages.php

« previous php.notes (#156769) next »