How to use ImageMagick to subtract an image from another?

I have these two images:

First
(source: free.fr )

Second
(source: free.fr )

How can I use imagemagick to remove the background (second image) from the first?

Cheers

Remy

Here I made you the last but simple example:

Transparent overlay http://noosphere.ionyse.com/transparent_example/transparent_difference.png Background http://noosphere.ionyse.com/transparent_example/background.png

Example 1 http://noosphere.ionyse.com/transparent_example/background-example.png Example 2 http://noosphere.ionyse.com/transparent_example/background-example2.png

Here you see that wherever I place a transparent overlay on the background, I get a perfect match using the opacity of the PNG overlay.

I would like to be able to calculate this image overlay. Do you think this is possible with ImageMagick?

+5
source share
1 answer

Source: https://habr.com/ru/post/1336790/


All Articles