IMAGE OVERLAPING AND COLORING
Posted: 2012-08-16T01:12:53-07:00
HI
I have two images and desired output which are as below. For same i have written below code. But i am not able to
1) Get black ground behind fonts.
2) Change image color
3) Common overlapped area changes color, while i want simply overlapped.
Can anyone guide?
Source Image #1
Source Image #2
Desired Output#3
I have two images and desired output which are as below. For same i have written below code. But i am not able to
1) Get black ground behind fonts.
2) Change image color
3) Common overlapped area changes color, while i want simply overlapped.
Can anyone guide?
Code: Select all
set in_path=C:\
set ou_path=C:\
set suffix=T.png
convert %in_path%%~1%suffix% -level 100%,0 im1.png
convert %in_path%%~2%suffix% -level 100%,0 im2.png
convert im1.png +level-colors red, +repage im1.png
convert im2.png +level-colors navy, +repage im2.png
composite -compose Multiply -gravity center im1.png im2.png %ou_path%%~3
convert %ou_path%%~3 -gravity north -splice 0X10 -gravity east -splice 10x0 -gravity west -splice 10x0 -gravity south -splice 0X60 -background black -pointsize 30 -font Arial-Bold -fill red -annotate -140+3 %~1 -fill navy -annotate +140+3 %~2 %ou_path%%~3
del im1.png
del im2.png
Source Image #1
Source Image #2
Desired Output#3