The default behavior for the imagettftext function is to rotate text counter-clockwise. Entering a rotation of '5' rotates the image properly. However, PHP needs some additional help when rotating text clockwise. Currently, entering a rotation of '-5' makes the text cutoff on top and bottom. Attached is a patch which allows for negative values to be properly rendered. Thanks!

CommentFileSizeAuthor
textimage_rotate.patch1.16 KBquicksketch

Comments

deciphered’s picture

Version: 5.x-1.2 » 5.x-2.x-dev
Status: Needs review » Closed (fixed)

Rotation has been completely re-worked in latest dev builds.