downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Imagick::writeImagesFile> <Imagick::writeImageFile
[edit] Last updated: Fri, 24 May 2013

view this page in

Imagick::writeImages

(PECL imagick 0.9.0-0.9.9)

Imagick::writeImagesEscribe una imagen o secuencia de imágenes

Descripción

bool Imagick::writeImages ( string $filename , bool $adjoin )

Escribe una imagen o secuencia de imágenes.

Parámetros

filename

adjoin

Valores devueltos

Devuelve TRUE en caso de éxito.



add a note add a note User Contributed Notes Imagick::writeImages - [2 notes]
up
0
Malou
3 years ago
As mbrugue sugest, the second parameter can also be use to save an animated gif:

<?php
$anim
= new Imagick();

$files = scandir($myFramesPath);
   
foreach(
$files as $f )
{
   
$auxIMG = new Imagick();
   
$auxIMG->readImage($mytifspath.$f);
   
   
$anim->addImage($auxIMG);
}

//write animated gif
$anim->writeImages('anim.gif', true);

?>
up
0
mbrugue
3 years ago
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);
?>

 
show source | credits | sitemap | contact | advertising | mirror sites