- convert -size 176x204 xc:black -font impact.ttf -pointsize 88 -fill white -annotate 30x30+0+60 "PIMPIN" output.jpg
"reverse-cropping" how to?
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 option:
The xc: format is is a canvas whose color is whatever follows the prefix and whose size is specified with the -size option:
- convert -size 100x200 xc:red red.jpg