Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Please always provide your Imagemagick version and platform.
This works for me. Composite two images at a time. Use -annotate to place your text. Use parenthesis processing to separate the processing for each image separately.
Thank you very much for the help you give this community every day!
Your script is just what I needed!
I have only one small change to make. Where it is written "to avoid" there may be a text that stands on two lines. How can this be done?
convert -respect-parentheses background.png \
\( product.jpg -resize x400 \) \
-gravity west -geometry +100+0 -compose over -composite \
\( red_box.png -fill white \
-font "/Library/fonts/OpenSans-Bold.ttf" -pointsize 100 -gravity center -annotate +0-100 "3.5" \
-font "/Library/fonts/OpenSans-Light.ttf" -pointsize 33 -gravity center -annotate +0-15 "out of 10" \
-font "/Library/fonts/OpenSans-BoldItalic.ttf" -pointsize 33 -gravity center -annotate +0+110 "to\navoid" \) \
-gravity west -geometry +500+0 -compose over -composite \
corona.jpg
If you need automatic line breaking, you cannot use -annotate. You would have to create separate text images on transparent backgrounds using caption: and then composite them onto your red_box image at the correct locations.