PHP 8.5.0 Alpha 2 available for testing

Imagick::animateImages

(PECL imagick 2 >= 2.3.0, PECL imagick 3)

Imagick::animateImagesAnimates an image or images

Description

public Imagick::animateImages(string $x_server): bool

This method animates the image onto a local or remote X server. This method is not available on Windows. This method is available if Imagick has been compiled against ImageMagick version 6.3.6 or newer.

Parameters

x_server

X server address

Return Values

Returns true on success.

See Also

add a note

User Contributed Notes 1 note

up
0
gomadurai at gmail dot com
15 years ago
Below eg shows how to create animated gif
<?php

$multiTIFF
= new Imagick();

$mytifspath = "./man"; / your image directory

$files = scandir($mytifspath);

/print_r($files);

/*foreach( $files as $f )
{*/

for($i=2;$i<6;$i++)
{
echo
$files[$i];

echo
"<br>";
$auxIMG = new Imagick();
$auxIMG->readImage($mytifspath."/".$files[$i]);

$multiTIFF->addImage($auxIMG);
}

/file multi.TIF
$multiTIFF->writeImages('multi423432.gif', true); / combine all image into one single image

/files multi-0.TIF, multi-1.TIF, ...
$multiTIFF->writeImages('multi.gif', false);

?>
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant