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

A Full-Featured Open-Source Framework for Image Processing



Latest stable version: 3.3.5        Current pre-release: 3.3.6 (2024/03/28)

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

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

image.jpg crop 25%,25%,75%,75%

Command: image.jpg crop 25%,25%,75%,75%
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.