Image composite mode: "grain merge"

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
seanspotatobusiness
Posts: 8
Joined: 2013-11-19T05:23:43-07:00
Authentication code: 6789

Image composite mode: "grain merge"

Post by seanspotatobusiness »

The GIMP has a mode for overlaying images on each other called "grain merge". Does ImageMagick have an equivalent to this, perhaps named differently?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Image composite mode: "grain merge"

Post by snibgo »

According to http://docs.gimp.org/en/gimp-concepts-layer-modes.html , grain merge is out = in1 + in2 - 50%. So this may be equivalent:

Code: Select all

convert in1 in2 -compose Mathematics 0,1,1,-0.5 -composite out
EDIT: wrote "composite" instead of "compose".
snibgo's IM pages: im.snibgo.com
Post Reply