Batch compose with alpha overlay
Posted: 2010-11-17T09:34:12-07:00
I have a massive amount of images where each image is split into two files: X.jpg X.png, Y.jpg Y.png, Z.jpg Z.png, and so on. The jpg file contains the image information whereas the png file is the to-be-alpha mask. I want to overlay the two images to create one image with an alpha mask. The following command does the trick:
convert X.jpg X.png -alpha Off -compose Copy_Opacity -composite X.tga
Is there a convenient way to batch this without a for loop, which, given my total number of images, would take forever?
Thanks.
convert X.jpg X.png -alpha Off -compose Copy_Opacity -composite X.tga
Is there a convenient way to batch this without a for loop, which, given my total number of images, would take forever?
Thanks.