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 »

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: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: masking two BW-TIFs

Post by snibgo »

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 »

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