In PHP Imagick this problem can be cured by setting the number of used threads to 1: $img->setResourceLimit(6, 1); // 6 means THREAD_LIMIT (unfortunately, there is no such constant defined, so u have to use this integer value);