G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing
Banner Institutions GREYC CNRS ENSICAEN UNICAEN

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 3.6.2        Current pre-release: 3.6.3 (2025/10/08)

Reference
Table of Contents  ▸  List of Commands  ▸  Mathematical Operators  ▸  mul◀  mmul    |    neq  ▶

mul

Built-in command

Arguments:

  • value[%]    or
  • [image]    or
  • 'formula'    or
  • (no arg)

Description:

Multiply selected images by specified value, image or mathematical expression, or compute the pointwise product of selected images.

(equivalent to shortcut command *).

See also:

add, sub, div.

Examples of use:

• Example #1

<a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> +mul 2 cut 0,255

Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> +mul 2 cut 0,255
Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> +mul 2 cut 0,255

• Example #2

<a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> (1,2,3,4,5,6,7,8) ri[-1] [0] mul[0] [-1]

Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> (1,2,3,4,5,6,7,8) ri[-1] [0] mul[0] [-1]
Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> (1,2,3,4,5,6,7,8) ri[-1] [0] mul[0] [-1]

• Example #3

<a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> mul '1-3*abs(x/w-0.5)' cut 0,255

Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> mul '1-3*abs(x/w-0.5)' cut 0,255

• Example #4

<a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> +luminance negate[-1] +mul

Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> +luminance negate[-1] +mul
Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> +luminance negate[-1] +mul
Command: <a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> +luminance negate[-1] +mul
G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing

G'MIC is an open-source software distributed under the CeCILL free software licenses (LGPL-like and/or
GPL-compatible). Copyrights (C) Since July 2008, David Tschumperlé - GREYC UMR CNRS 6072, Image Team.