rescale2d
Arguments:
- _width[%]={ 0:any | >0 },_height[%]={ 0:any | >0 },-1=<_interpolation<=6,_mode={ 0:inside | 1:padded-inside | 2:outside | 3:cropped-outside }
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 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.