iscale(1X)
NAME
iscale - scale an image
SYNTAX
iscale xfactor yfactor image
ARGUMENTS
xfactor Specifies the x scaling factor by which the width of the image is multiplied. This scaling factor must be greater than 0 (either a fixed or floating point number).
yfactor Specifies the y scaling factor by which the length of the image is multiplied. This scaling factor must be greater than 0 (either a fixed or floating point number).
image Specifies the name of the file, previously created by the savimg command, which is used as input.
DESCRIPTION
The iscale command enlarges or reduces the named image by multiplying its dimensions by the specified x and y scaling factors and producing a new image.
RESTRICTIONS
Unless otherwise redirected to a file or piped to another image process, all output is displayed as raw data at your terminal.
When xfactor or yfactor is less than one, some color pixels may be lost.
EXAMPLES
iscale 2 3 image1 >image2
This command, using input from image1, multiplies the width of image1 by 2, the length by 3, and produces image2.
iscale 2.7 0.3 image3 >image4
This command, using input from image3, multiplies the width by 2.7, the length by 0.3, and produces image4. (The y scaling factor compresses the new image vertically.)
FILES
/usr/include/imghdr.h Defines the image file format.