How to subtrack images correctly.
Posted: 2009-05-26T04:46:06-07:00
Hi,
I have two sets of frame images of a flame, one set is the color image itself and one set is its alpha channel supposedly. Both sets are JPG files.
What I want to do is to build a transparent animated file (or another way instead, what do you think) to use it as a particle system.
here is one frame of each of those sets:
So I have to subtract that alpha picture from the colored one to get the pure picture. I tried this with the images I posted in the first post in ImageMagick but turned to garbage:
the command I executed:
composite -compose subtract source.jpg alpha.jpg newfile.jpg
and the result:
what am I missing here? the process worked with Photoshop, I created an alpha channel in colored picture, copied the alpha picture there, deleted background and voila.
I think I'm missing something with ImageMagick here.
Here is what I wanted:
I have two sets of frame images of a flame, one set is the color image itself and one set is its alpha channel supposedly. Both sets are JPG files.
What I want to do is to build a transparent animated file (or another way instead, what do you think) to use it as a particle system.
here is one frame of each of those sets:
So I have to subtract that alpha picture from the colored one to get the pure picture. I tried this with the images I posted in the first post in ImageMagick but turned to garbage:
the command I executed:
composite -compose subtract source.jpg alpha.jpg newfile.jpg
and the result:
what am I missing here? the process worked with Photoshop, I created an alpha channel in colored picture, copied the alpha picture there, deleted background and voila.
I think I'm missing something with ImageMagick here.
Here is what I wanted: