how to cut two holes in a PNG one after the other
Posted: 2014-09-07T23:55:26-07:00
Hello,
I have this image :
Image1.png :
I cut a hole in this image using the mask of same width and height :
mask1.png : (black and white image with no transparency)
and the result :
Image2.png :
I have another mask of same width and height :
Mask2.png : (black and white image with no transparency)
I wish to cut another hole in image 2 using mask 2 without erasing the first hole.
I tried the same command given above and it created the second hole, but erased the first hole.
If there is any other method, please inform.
Please help.
Thanks
I have this image :
Image1.png :
I cut a hole in this image using the mask of same width and height :
mask1.png : (black and white image with no transparency)
Code: Select all
convert image1 mask1 -alpha Off -compose CopyOpacity -composite image2
Image2.png :
I have another mask of same width and height :
Mask2.png : (black and white image with no transparency)
I wish to cut another hole in image 2 using mask 2 without erasing the first hole.
I tried the same command given above and it created the second hole, but erased the first hole.
If there is any other method, please inform.
Please help.
Thanks