After image resize new images are partially greyed out

im using Yii2 Image to resize my images, im using the following code:



Image::thumbnail($file, 200, 200)->save($newFile, ['quality' => 85]);


We are using Imagick.

But for some reason, 2~5 images of a set of 100 images that are being resized have partially greyed foreground color.

I noticed some one else had the same problem:

http://www.imagemagick.org/discourse-server/viewtopic.php?t=32185

We checked the temp folder for overflowing, this was not the case. Even if it happend, we resized the image manualy after, which ends up fine.

Any idea what else i could try?