I have a bit of a problem with ImageMagick that I've been wrestling with for a few hours, and I think it's time I got some help.
When editing an image with the imagick PHP extension I occasionally get a seemingly random spattering of black dots on my output image.
For example, I open this image:

(additional links in case of 404:
http://s8.postimg.org/izkvrqgph/c5cdc3e ... b8c0e2.jpg
http://i.imgur.com/ee8Gqy3.jpg)
Might result in something like this:

(additional links in case of 404:
http://s28.postimg.org/kgweuthod/image.jpg
http://i.imgur.com/MrKlz5s.jpg)
Notice the random-ish black dots all across the face. Sometimes this problem occurs, sometimes it doesn't. The black dots are different every time and don't appear to be related to anything in particular, though they do seem to follow areas within the image that have the same colour.
The problem seems to occur more often when I am processing many images at the same time, and less often if I just process a single image.
In the above example I am simply using haldClutImage(), though the same problem occurs using other methods, it really doesn't seem to matter which methods I am using.
For the sake of completeness this is the clut I am using:

(additional links:
http://postimg.org/image/js6bzh9fb/
http://i.imgur.com/mPcXIVO.jpg)
The hald clut was produced some time ago in an earlier version of ImageMagick, I am really hoping the clut isn't the problem as I'm not sure I have the heart to re-do all my cluts!
I am using the following:
PHP Version 5.5.9-1ubuntu4.14
imagick module version 3.3.0
ImageMagick 6.9.3-3 Q16 x86_64 2016-02-06 (as reported in phpinfo() and identify)
I have re-compiled ImageMagick (using default configure settings) to upgrade from the old version in the Ubuntu repository, I have re-compiled the imagick PECL PHP extension also.
I could have sworn I had a similar issue in the past but I can't find it for the life of me, the closest related problem I could find was this one: https://www.imagemagick.org/discourse-s ... hp?t=25554. The end result being that it would be fixed it a subsequent version, so maybe my issue has a different source.
Could anybody give me some pointers or things to try?