Reputation: 2765
I'd like to add descriptions to this photo:
so that it look like this:
The command that I use is:
montage -pointsize 14 -gravity NorthWest -title "\nName: $filename\nOrigin:$origin \n Price:$price " input.png output.png
But instead I get:
How can I fix this? I need the description to appear on top left in a fringe not more than 20% the overall height of the image?
Upvotes: 0
Views: 69
Reputation: 208107
You can do something like this:
#!/bin/bash
name="Flower"
origin="Moon"
price="£3.99"
magick flower.jpg -size "%[fx:w/4]x%[fx:h/4]" caption:"Name: $name\nOrigin: $origin\nPrice:$price" -trim +swap -append result.jpg
Upvotes: 1