Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
I want to compose a g_4_1.png over a blank transparent canvas using composition "plus". The problem is if i use a transparent canvas the image just gets copied over the canvas and fills the background black. But if i use a background color for example "skyblue" for the canvas it displays the image how i want it whitout the black background.
Using "transparent" Using "skyblue"
I dont know if this is a bug with imagemagick or the g_4_1.png has some sort of "filter" or "mask" on top of it. Could it be a bug with the plus composition, adding transparent pixel to colorized pixel
Your image is opaque. When you add opaque black to anything it is adding opaque 0. So when you add opaque 0 on a transparent background it will still be black since you are composing an opaque image onto transparency. Thus the transparency is lost in that region.
When you add opaque black it over opaque blue, you add 0 and thus do not change the blue.
"-compose Plus -composite" simply adds values, when both inputs are opaque. But when at least one has transparency, inputs are "pre-multiplied" by alpha, and the result is "post-divided" by the sum of the alphas.
g_4_1.png is fully opaque. Composite this with "plus" on a transparent-black, and the result is the same as g_4_1.png. It doesn't "fill the background black". I can't see a bug.
I first create the dragon image from some PNGs. Then i create the animation of the flame. And after that i compose both together.
But g_4_1.png has this black pixels which need to be transparent.