Reference

Table of Contents  ▸  List of Commands  ▸  Geometry Manipulation  ▸  shift◀  seamcarve    |    shrink_x  ▶

shift

Built-in command

Arguments:

Description:

Shift selected images by specified displacement vector.

Displacement vector can be non-integer in which case linear interpolation should be chosen.
boundary_conditions can be { 0=dirichlet | 1=neumann | 2=periodic | 3=mirror }.

Default values:

boundary_conditions=0 and interpolation=0.

Example of use:

$ gmic image.jpg +shift[0] 50%,50%,0,0,0 +shift[0] 50%,50%,0,0,1 +shift[0] 50%,50%,0,0,2

Command: image.jpg +shift[0] 50%,50%,0,0,0 +shift[0] 50%,50%,0,0,1 +shift[0] 50%,50%,0,0,2
Command: image.jpg +shift[0] 50%,50%,0,0,0 +shift[0] 50%,50%,0,0,1 +shift[0] 50%,50%,0,0,2
Command: image.jpg +shift[0] 50%,50%,0,0,0 +shift[0] 50%,50%,0,0,1 +shift[0] 50%,50%,0,0,2
Command: image.jpg +shift[0] 50%,50%,0,0,0 +shift[0] 50%,50%,0,0,1 +shift[0] 50%,50%,0,0,2