取第一帧

1
2
3
4
5
6
7
8
9
10
11
$file_in = './orig.gif';
$file_out = './thumb.gif';

$image = new Imagick($file_in);
foreach ($image as $frame)
{
$frame->writeImage($file_out);
break;
}
$image->clear();
$image->destroy();