This is the code I'm using:
Code: Select all
$text = 'This is my text';
exec("new.jpg -rotate -270 -gravity southwest -annotate 0 ".$text." -rotate 270 newimage.jpg");
So it doesn't show me: is my text
But I want the textline to say: This is my text
I used this sample code from the ImageMagick site:
Code: Select all
convert rings.jpg -rotate -90 \
-gravity South -annotate +0+2 'String' \
-rotate 90 gravity_text_left.jpg

Source: http://www.imagemagick.org/Usage/annotating/
So I want the full text to be shown: This is my text on the right side (rotated). I'm using ImageMagick version 6.8.1-8 Q16 on Windows 7 32-bit.