3 resample, resize - resample a picture
33 resamples its input image (default standard input) to a new size.
35 uses a Kaiser window which produces high quality results and
37 uses bilinear interpolation which is faster but produces more
43 can also use nearest neighbour interpolation which preserves the individual pixels and is appropriate for pixel art or
47 The size of the resampled image can be specified
53 An unadorned value sets the number of pixels of that dimension; a
54 suffixed percent sign specifies a percentage.
59 is given, the other dimension is scaled to preserve
60 the aspect ratio of the original image.
63 will reduce the image to half its original dimension in both
68 The input should be a Plan 9 image
71 and the output will be a compressed 24-bit
74 To uncompress the image or change the pixel format, use
80 .B /sys/src/cmd/resample.c
82 .B /sys/src/cmd/resize.c