i have a problem with the order of images put together with MagickAppendImages();
Code: Select all
$resource = NewMagickWand();
MagickReadImage( $resource, 'test.jpg' );
$tmpres1 = CloneMagickWand($resource);
MagickFlopImage($tmpres1);
MagickAddImage($resource,$tmpres1);
DestroyMagickWand($tmpres1);
$tmpres2 = CloneMagickWand($resource);
MagickFlipImage($tmpres2);
MagickAddImage($resource,$tmpres2);
DestroyMagickWand($tmpres2);
MagickResetIterator($resource);
$newres = MagickAppendImages($resource);
MagickSetImageCompressionQuality($newres ,95);
MagickWriteImage($nmwc,'testres.jpg');
i can get only "$resource - $resource1 - $tmpres2"
if i set MagickSetImageIndex($resource,0); infront of the second MagickAddImage()
thanks for help
Stefan