Page 1 of 1
To rotate text on a canvas of solid background, try this command:
- convert -size 176x204 xc:black -font impact.ttf -pointsize 88 -fill white -annotate 30x30+0+60 "PIMPIN" output.jpg
The best solution is to use an API such as PerlMagick but from the command line you could create the label from the command line and use the identify
program to extract the image size and in a shell script use the size to calculate the offset needed for annotating the text onto you canvas.
The xc: format is is a canvas whose color is whatever follows the prefix and whose size is specified with the -size
- convert -size 100x200 xc:red red.jpg