Alturnative for black and white labels you can select either a -compose multiply, or -compose screen to overlay such images. See IM Examples Alpha composition for more details.
Note also that -rotate rotates all images in memory. The first rotate only sees
one image "back.pjg" the second rotates the composted image.
You can clean up the order using...
Code: Select all
convert back.jpg -rotate -90 \
-background black -fill white -size 300x label:"Lorem Ipsum" \
-compose screen -composite -rotate +90 out.jpg
Code: Select all
convert back.jpg \
-background black -fill white -size 300x \
\( label:"Lorem Ipsum" -rotate -90 \) \
-compose screen -composite out.jpg
http://www.cit.gu.edu.au/~anthony/graph ... #practical
Finally if you do not plan to generate a more complex componud font (see IM Examples on compund fonts) for overlaying, you can always -annotate the text directly onto the image canvas. Annotate can draw rotated or angled text, but of course needs an existing canvas to draw on, unlike label which creates its own canvas, as it is an image generator.
In summery I would suggest you look at IM Examples and study the sections
Text to Image Handling
Compund Font Effects
Annotating Images.
These three sections work as a block, and were actually first written for IM version 5!
(see the older abandoned IM v5 Examples linked from the top level IM examples page).