avalanche123/Imagine — pull request #107 by christeredvartsen (2012-04-11 07:41:56+00:00)
Title: Rotating images with Gmagick fails if no background color is set

The following snippet fails with:

"Catchable fatal error: Argument 1 passed to Imagine\Gmagick\Image::getColor() must be an instance of Imagine\Image\Color, null given"

open('/path/to/image')->rotate(90);

This PR fixes this issue by setting a default background color (the same color set in the Gd implementation).