Reference

Table of Contents  ▸  List of Commands  ▸  Control Flow  ▸  local◀  if    |    mutex  ▶

local

Built-in command

No arguments

Description:

Start a local...[onfail]...endlocal block, with selected images.

(equivalent to shortcut command l).

This command has a tutorial page.

Examples of use:

• Example #1

$ gmic image.jpg local[] 300,300,1,3 rand[0] 0,255 blur 4 sharpen 1000 endlocal

Command: image.jpg local[] 300,300,1,3 rand[0] 0,255 blur 4 sharpen 1000 endlocal
Command: image.jpg local[] 300,300,1,3 rand[0] 0,255 blur 4 sharpen 1000 endlocal

• Example #2

$ gmic image.jpg +local repeat 3 deform 20 done endlocal

Command: image.jpg +local repeat 3 deform 20 done endlocal
Command: image.jpg +local repeat 3 deform 20 done endlocal