Replace part of an image
Posted: 2014-05-23T08:03:23-07:00
I have two images of same size. I want to replace an area given by location X,Y with size W,H of image 1 with exact same located area of image 2 (or vice versa).
I tried this without success (think that X,Y,W,H are replaced with their desired values):
I only get two images OUTPUT-0.png and OUTPUT-1.png but no overlay of both. What would be the correct one-line command?
Thanks a lot!
I tried this without success (think that X,Y,W,H are replaced with their desired values):
Code: Select all
convert.exe IMAGE1.png ( IMAGE2.png -crop WxH+X+Y +repage ) -compose Copy -geometry +X+Y OUTPUT.png
Thanks a lot!