Reference

Table of Contents  ▸  List of Commands  ▸  Geometry Manipulation  ▸  crop◀  columns    |    diagonal  ▶

crop

Built-in command

Arguments:

Description:

Crop selected images with specified region coordinates.

(equivalent to shortcut command z).


boundary_conditions can be { 0=dirichlet | 1=neumann | 2=periodic | 3=mirror }.

Default values:

boundary_conditions=0.

Examples of use:

• Example #1

$ gmic image.jpg +crop -230,-230,280,280,1 crop[0] -230,-230,280,280,0
Command: image.jpg +crop -230,-230,280,280,1 crop[0] -230,-230,280,280,0
Command: image.jpg +crop -230,-230,280,280,1 crop[0] -230,-230,280,280,0

• Example #2

$ gmic image.jpg crop 25%,25%,75%,75%
Command: image.jpg crop 25%,25%,75%,75%