Using modulate on part of an image
Posted: 2010-03-10T01:41:54-07:00
Hi,
New to ImageMagick so bear with me. I am using the convert command (see below) to overlay a picture on a background image, resize it, add some text and a white border around the picture. However I want to lighten the picture that I am overlaying. I have played about with the -modulate switch but it only ever lightens the entire image. Is it possible to do it in a single command or will I need to do it in 2 steps (not ideal as I don't really want to duplicate or modify the original image)?
So, my line is
Ideally I want the line....
processed independently before being overlayed onto the background image.
Thanks
New to ImageMagick so bear with me. I am using the convert command (see below) to overlay a picture on a background image, resize it, add some text and a white border around the picture. However I want to lighten the picture that I am overlaying. I have played about with the -modulate switch but it only ever lightens the entire image. Is it possible to do it in a single command or will I need to do it in 2 steps (not ideal as I don't really want to duplicate or modify the original image)?
So, my line is
Code: Select all
convert 'background.png' \
picture.jpg'[600x450]' -geometry +116+76 -modulate 120 -composite \
-fill none -stroke white -strokewidth 10 \
-draw "roundrectangle 116,76 716,526 12,12" \
-fill white -stroke none -strokewidth 0 -weight normal -style normal \
-font freakturbulance -gravity northwest -pointsize 20 \
-draw "text 90,580 'Name'" \
-font freakturbulance -gravity northeast -pointsize 35 \
-draw "text 90,570 'Joseph'" \
'newimage.png'
Code: Select all
picture.jpg'[600x450]' -geometry +116+76 -modulate 120 -composite
Thanks