David, do you have an idea to answer my problem?
I just want to rotate a 2D image in 3D while keeping the transparency. I don’t know if this is possible with gmic.
Thank you.
Allow me to make some suggestions in the meantime. Let’s think through the problem. G’MIC doesn’t care about transparency the way you regard it. The alpha channel is just another colour channel. Use the alpha to mask the heart shape.
Separate it from the heart.
Do transformations on both the heart and the mask, respectively.
For each frame, mask the transformed hearts with the transformed masks.
Now the masking will be used in a blend such that you will have the heart on top of something. ImageMagick, which is what G’MIC uses to assist it with (animated) GIFs, may be a better app to use if you need more control of transparencies, alphas, composites, animations, etc. I am sure you could do the same with G’MIC but there is power in the builtin functions of IM.
In fact, I already know how to do this with IM but I want to use gmic because it is much faster to generate images with perspective (the goal is to create an animation so with a lot of calculation).
Your idea is very interesting but it requires 2 times more calculation, for the starting image and then for the mask and that for each frame that will compose the animation.
If there is no other more dynamic solution, I will generate the different frames of the mask (heart) and I will apply them on the final animation.