Reference

Table of Contents  ▸  List of Commands  ▸  Mathematical Operators  ▸  add◀  acosh    |    and  ▶

add

Built-in command

Arguments:

Description:

Add specified value, image or mathematical expression to selected images, or compute the pointwise sum of selected images.

(equivalent to shortcut command +).

Examples of use:

• Example #1

$ gmic image.jpg +add 30% cut 0,255

Command: image.jpg +add 30% cut 0,255
Command: image.jpg +add 30% cut 0,255

• Example #2

$ gmic image.jpg +blur 5 normalize 0,255 add[1] [0]

Command: image.jpg +blur 5 normalize 0,255 add[1] [0]
Command: image.jpg +blur 5 normalize 0,255 add[1] [0]

• Example #3

$ gmic image.jpg add '80*cos(80*(x/w-0.5)*(y/w-0.5)+c)' cut 0,255

Command: image.jpg add '80*cos(80*(x/w-0.5)*(y/w-0.5)+c)' cut 0,255

• Example #4

$ gmic image.jpg repeat 9 +rotate[0] {$>*36},1,0,50%,50% done add div 10

Command: image.jpg repeat 9 +rotate[0] {$>*36},1,0,50%,50% done add div 10