masking two BW-TIFs

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?".
Post Reply
tco95ttocs
Posts: 20
Joined: 2017-08-29T06:37:37-07:00
Authentication code: 1151

masking two BW-TIFs

Post by tco95ttocs » 2019-08-21T02:37:56-07:00

Hi Guys,
since several days i try to masked 2 Black-White-TIFs with each other. But i didn't come to an end!
i Tried something with -clip-mask and composite but until now i didnt get the result i want to (see below; was created with some old Linux based software)
I have the following tifs:
the masking tif
the tif that should be masekd

the result should looks like this!

Can someone help me, please!

snibgo
Posts: 12162
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: masking two BW-TIFs

Post by snibgo » 2019-08-21T05:44:41-07:00

What version of IM, on what platform? I'll assume v7, on Windows.

Code: Select all

magick maske.png -negate hrot.png -compose Lighten -composite out.png
snibgo's IM pages: im.snibgo.com

tco95ttocs
Posts: 20
Joined: 2017-08-29T06:37:37-07:00
Authentication code: 1151

Re: masking two BW-TIFs

Post by tco95ttocs » 2019-08-21T06:43:49-07:00

thx snibgo

just before reading your answer i got another solution!

Code: Select all

magick maske.png -negate hrot.png -compose plus -composite out.png
but you are right i forgot the Version....for testing 7.0.8-Q16 on Win7 and later for automation some actuall version of Magick.net
but now everything is fine :)

so this could be closed

Post Reply