I'd like to add a light / white rectangle to images. The size of the rectangle depends on the size (meaning: the orientation) of my destination image. So far, I found a way to do that:
Code: Select all
convert IMG_in.JPG -auto-orient -format 'roundrectangle 400, %[fx:h-400-400], %[fx:w-400], %[fx:h-400], 80, 80' info: > rec.mvg
convert IMG_in.JPG -fill "rgba(255, 255, 255, 0.5)" -draw "@rec.mvg" IMG_out.JPG
Any ideas?
Thank you in advance!
Flaschengeist
EDIT: to make it more clear:
What I have:
What I want: