magick++ writeImages not returning
In recent versions of ImageMagick we modified the color reduction algorithm to improve handling transparent colors. GIF requires a binary transparency, either transparent or not transparent. The new algorithm does a much better job of handling transparency but with a cost in terms of processing time. Notice how fast the program runs if you write to test.miff rather than test.gif. If transparency is not required you will get a speed up writing to GIF. Just set the image matte member to MagickFalse before you write the GIF animation.