Change a setting when resizing using Imagick that caused inconsistent behaviour between it and GD