Here is the box that I created.
convert -density 72 -size 576x252 xc:white -stroke black -linewidth 1 -fill white -draw "rectangle 3,3 573,249" -draw "line 193,249 193,3" -draw "line 383,249 383,3" cv05.png
I am looking to insert an image in the middle box and have not found the right command for placing the image I need.
Any resources and answers are greatly appreciated.
Thanks!
Insert Image inside box i created.
-
- Posts: 19
- Joined: 2011-01-10T12:25:14-07:00
- Authentication code: 8675308
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Insert Image inside box i created.
If you have drawn your boxes correctly centered, and the image you want to put in the middle is no bigger than the box, you can do simply,
convert cv05.png yourinsertimage.png -gravity center -compose over -composite resultimage.png
if you need to move it slightly, you can add -geometry +X+Y to shift it X or Y amount of pixels from the center
convert cv05.png yourinsertimage.png -gravity center -geometry +X+Y -compose over -composite resultimage.png
see http://www.imagemagick.org/Usage/layers/ and http://www.imagemagick.org/Usage/layers/#convert
convert cv05.png yourinsertimage.png -gravity center -compose over -composite resultimage.png
if you need to move it slightly, you can add -geometry +X+Y to shift it X or Y amount of pixels from the center
convert cv05.png yourinsertimage.png -gravity center -geometry +X+Y -compose over -composite resultimage.png
see http://www.imagemagick.org/Usage/layers/ and http://www.imagemagick.org/Usage/layers/#convert