"paste" image on top of another
Posted: 2013-07-25T19:01:54-07:00
I am trying to "paste" one image on top of another without the colour of the "pasted" image being changed at all.
It seems to work fine if i use a plain white image like so:
convert -quality 100% -size 715x156 xc:white "testnew.jpg"
convert -quality 100% -background none -virtual-pixel transparent -pointsize 40 -font "Open_Sans.ttf" -fill "#e66956" label:"Testing" "label.png"
composite -quality 100% -geometry +50+50 "label.png" "testnew.jpg" "testnew.jpg"
But if i use a different image that has some other colour in it, the colours in the "pasted" imaged get modified (there are some dark edges added):
convert -quality 100% "526org_1370178839.jpg" "testnew.jpg"
convert -quality 100% -background none -virtual-pixel transparent -pointsize 40 -font "Open_Sans.ttf" -fill "#e66956" label:"Testing" "label.png"
composite -quality 100% -geometry +50+50 "label.png" "testnew.jpg" "testnew.jpg"
I want the text to be copied exactly as it is, over the top without it changing colour.
Thanks for any help.
It seems to work fine if i use a plain white image like so:
convert -quality 100% -size 715x156 xc:white "testnew.jpg"
convert -quality 100% -background none -virtual-pixel transparent -pointsize 40 -font "Open_Sans.ttf" -fill "#e66956" label:"Testing" "label.png"
composite -quality 100% -geometry +50+50 "label.png" "testnew.jpg" "testnew.jpg"
But if i use a different image that has some other colour in it, the colours in the "pasted" imaged get modified (there are some dark edges added):
convert -quality 100% "526org_1370178839.jpg" "testnew.jpg"
convert -quality 100% -background none -virtual-pixel transparent -pointsize 40 -font "Open_Sans.ttf" -fill "#e66956" label:"Testing" "label.png"
composite -quality 100% -geometry +50+50 "label.png" "testnew.jpg" "testnew.jpg"
I want the text to be copied exactly as it is, over the top without it changing colour.
Thanks for any help.