Why should they be MagickSetImageIndex fuzzy picture

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
Rlby

Why should they be MagickSetImageIndex fuzzy picture

Post by Rlby »

Source map
Image
The first frame
Image
The second frame
Image
The result is how this should be
The first frame
Image
The second frame
Image


$nmw =NewMagickWand();
MagickReadImage($nmw,'20.gif');
$index=MagickGetImageIndex($nmw);
MagickSetImageIndex($nmw,0);

$cc =MagickGetImage($nmw);
for($i=0;$i<=$index;$i++)
{
$a =MagickGetImage($nmw);
//$a=MagickAppendImages($cc);
MagickSetFormat($a,'gif');
MagickWriteImages($a,$i.".gif",MagickTrue);
}
Rlby

Re: Why should they be MagickSetImageIndex fuzzy picture

Post by Rlby »

help me ,thinks
Post Reply