Resample resamples its input image (default standard input) to a new size.
The image is decimated or interpolated using
a Kaiser window.
The size of the resampled image can be specified
An unadorned value sets the number of pixels of that dimension; a suffixed percent sign specifies a percentage.
If only one of
-y is given, the other dimension is scaled to preserve
the aspect ratio of the original image.
-x50% will reduce the image to half its original dimension in both
The input should be a Plan 9 image
as described in
and the output will be a compressed 24-bit
To uncompress the image or change the pixel format, use