There is a wrong comparison operator at line 729 of textimage.module:

if ($rotation !== 0) { // wrong!
  $image = imagerotate($image, $rotation, 0);
}

The operator "!==" compares types, not values. "!=" would be correct. The result is, that imagerotate() is always called, which causes an error on my debian system as it doesn't have imagerotate(). Btw, this bug with bundled gd2 versions should be mentioned on the Module page.

if ($rotation != 0) { // correct
  $image = imagerotate($image, $rotation, 0);
}

Comments

deciphered’s picture

Status: Active » Closed (fixed)

This was fixed in a previous development build, but thank you for creating the issue.

Cheers,
Deciphered.