-rotate fill in triangles
Posted: 2007-07-11T14:06:48-07:00
I'm new to imagemagick, took a few hours and a little help to get up and running.
I want to merge the 3 photographs onto a black background.
Using convert and composite everything works as expected.
But going to the next step the two outer images need to be tilted by about 5 degrees outward to ‘matchup correctly’.
Running the –rotate command tilts the image (+ or -) all fine.
EXCEPT the triangles left over by the ‘rotate command’.
How do I convert them to ‘black’, they are currently ‘white’ in a black background.
Command I’m running are as follows.
convert -size 1910x600 xc:none -fill black blank.jpg
convert 20070709110026L.jpg -rotate -5 20070709110026L.jpg
convert 20070709110014R.jpg -rotate 5 20070709110014R.jpg
composite -compose atop -geometry +25+00 20070709110026L.jpg blank.jpg test1.jpg
composite -compose atop -geometry +1285+46 20070709110014R.jpg test1.jpg test1.jpg
composite -compose atop -geometry +695+49 20070709110003M.jpg test1.jpg test1.jpg
Can one of you bright folk point out where I’m going wrong.
This solution follows several examples I've looked at on the web, maybe its not the best, I'm open to suggestions!
Many thanks
I want to merge the 3 photographs onto a black background.
Using convert and composite everything works as expected.
But going to the next step the two outer images need to be tilted by about 5 degrees outward to ‘matchup correctly’.
Running the –rotate command tilts the image (+ or -) all fine.
EXCEPT the triangles left over by the ‘rotate command’.
How do I convert them to ‘black’, they are currently ‘white’ in a black background.
Command I’m running are as follows.
convert -size 1910x600 xc:none -fill black blank.jpg
convert 20070709110026L.jpg -rotate -5 20070709110026L.jpg
convert 20070709110014R.jpg -rotate 5 20070709110014R.jpg
composite -compose atop -geometry +25+00 20070709110026L.jpg blank.jpg test1.jpg
composite -compose atop -geometry +1285+46 20070709110014R.jpg test1.jpg test1.jpg
composite -compose atop -geometry +695+49 20070709110003M.jpg test1.jpg test1.jpg
Can one of you bright folk point out where I’m going wrong.
This solution follows several examples I've looked at on the web, maybe its not the best, I'm open to suggestions!
Many thanks