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/05/02)

Reference

Table of Contents  ▸  List of Commands  ▸  Geometry Manipulation  ▸  rescale2d◀  permute    |    rescale3d  ▶

rescale2d

Arguments:

Description:

Resize selected 2D images while preserving aspect ratio.

interpolation can be { -1:status only | 0:none | 1:nearest | 2:average | 3:linear | 4=grid | 5=bicubic | 6=lanczos }.
When interpolation==-1, image size is actually not modified, but the size that would have been used for the last selected image is returned in the status value.
Each resized image size is computed according to the specified mode:
If mode==0, image size is at most (width,height).
If mode==1 or mode==3, image size is exactly (width,height).
If mode==2, image size is at least (width,height).

(equivalent to shortcut command rs).

Default values:

width=height=0, interpolation=2 and mode=0.

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.