Search code examples
image-processinggraphicsmagick

Overlay images on top of another without any fading


I have a series of images. What I wish to do is to literally superimpose these images on top of each other without any other manipulation. The actual example is below

This is the first image

This is the first image

This is the second image

enter image description here

There are five samples like this, each with a tooltip on top of the bar. Essentially, the final image needs have the bars in their full green color with the tool tips showing up on each bar.

The closest I've been able to come up with was using GraphicsMagick which unfortunately does the following with its "average" command.

enter image description here

Any other pointers on how to accomplish this?

Finally: While at this time I just want to get the job done, long term, I will ideally want to use some commandline tool like GraphicsMagick without the need to have a desktop software installed.


Solution

  • You could try using the darken blend mode in ImageMagick:

    convert 1.png 2.png 3.png -compose darken -composite result.png
    

    enter image description here

    You'd have to tidy up your cropping first though!