Reference

Table of Contents  ▸  List of Commands  ▸  Input / Output  ▸  input◀  funny_oneliners    |    input_565  ▶

input

Built-in command

Arguments:

Description:

Insert a new image taken from a filename or from a copy of an existing image [index],

or insert new image with specified dimensions and values. Single quotes may be omitted in
formula. Specifying argument 0 inserts an empty image.

(equivalent to shortcut command i).

Default values:

nb_copies=1, height=depth=spectrum=1 and value1=0.

This command has a tutorial page.

Examples of use:

• Example #1

$ gmic input image.jpg
Command: input image.jpg

• Example #2

$ gmic input (1,2,3;4,5,6;7,8,9^9,8,7;6,5,4;3,2,1)
Command: input (1,2,3;4,5,6;7,8,9^9,8,7;6,5,4;3,2,1)

• Example #3

$ gmic image.jpg (1,2,3;4,5,6;7,8,9) (255^128^64) 400,400,1,3,'if(x>w/2,x,y)*c'
Command: image.jpg (1,2,3;4,5,6;7,8,9) (255^128^64) 400,400,1,3,'if(x>w/2,x,y)*c'
Command: image.jpg (1,2,3;4,5,6;7,8,9) (255^128^64) 400,400,1,3,'if(x>w/2,x,y)*c'
Command: image.jpg (1,2,3;4,5,6;7,8,9) (255^128^64) 400,400,1,3,'if(x>w/2,x,y)*c'
Command: image.jpg (1,2,3;4,5,6;7,8,9) (255^128^64) 400,400,1,3,'if(x>w/2,x,y)*c'