Table of Contents ▸ List of Commands ▸ Geometry Manipulation ▸ rescale2d | ◀ permute | rescale3d ▶ |
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.