Problem with compsiting images
Posted: 2011-06-07T08:09:51-07:00
Hi,
I'd like to add a blurred border arround an image and add a watermark in the lower right corner.
My approach was:
but for some reason the watermark (overlay.png) is only visible in the 40x40 border.. it's cut off by the center of the image.
Does anyone know what the problem may be?
And, another problem.. I'd like the 1px border between the blurred border and the normal central image to be transparent.. I thought if I use screen as compose method and set the bordercolor to lightgray this would work.. but it didn't.
Thanks a lot,
Kira
I'd like to add a blurred border arround an image and add a watermark in the lower right corner.
My approach was:
Code: Select all
convert \( \
input.jpg \
\( +clone -blur 10x4 -fill black -colorize 25% \) \
\( +clone -gamma 0 -shave 40x40 -bordercolor white -border 40x40 \) -composite \
\( +clone -gamma 0 -shave 40x40 -bordercolor lightgray -border 1x1 -bordercolor black -border 39x39 \) -compose screen -composite \
\) \
overlay.png -gravity SouthEast -compose copy -composite \
output.jpg
Does anyone know what the problem may be?
And, another problem.. I'd like the 1px border between the blurred border and the normal central image to be transparent.. I thought if I use screen as compose method and set the bordercolor to lightgray this would work.. but it didn't.
Thanks a lot,
Kira