diff options
author | rsc <devnull@localhost> | 2006-03-20 03:32:52 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-03-20 03:32:52 +0000 |
commit | 4c55bb28b4b4300bd1cc138ec3fae50dafb09e2b (patch) | |
tree | 550acbf3934b48e9512d615e0ecdc6e5cf99c751 /man/man1/resample.1 | |
parent | 7fc7ed2a2200a6fc72c47fe374c37579091e4da5 (diff) | |
download | plan9port-4c55bb28b4b4300bd1cc138ec3fae50dafb09e2b.tar.gz plan9port-4c55bb28b4b4300bd1cc138ec3fae50dafb09e2b.tar.bz2 plan9port-4c55bb28b4b4300bd1cc138ec3fae50dafb09e2b.zip |
new
Diffstat (limited to 'man/man1/resample.1')
-rwxr-xr-x | man/man1/resample.1 | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/man/man1/resample.1 b/man/man1/resample.1 new file mode 100755 index 00000000..87922468 --- /dev/null +++ b/man/man1/resample.1 @@ -0,0 +1,58 @@ +.TH RESAMPLE 1 +.SH NAME +resample \- resample a picture +.SH SYNOPSIS +.B resample +[ +.B -x +.I size +] [ +.B -y +.I size +] [ +.I file +] +.SH DESCRIPTION +.I Resample +resamples its input image (default standard input) to a new size. +The image is decimated or interpolated using +a Kaiser window. +.PP +The size of the resampled image can be specified +with the +.B -x +and +.B -y +options. +An unadorned value sets the number of pixels of that dimension; a suffixed percent sign specifies a percentage. +If only one of +.B -x +or +.B -y +is given, the other dimension is scaled to preserve +the aspect ratio of the original image. +Thus, +.B -x50% +will reduce the image to half its original dimension in both +.B x +and +.BR y . +.PP +The input should be a Plan 9 image +as described in +.IR image (6), +and the output will be a compressed 24-bit +.B r8g8b8 +image. +To uncompress the image or change the pixel format, use +.I iconv +(see +.IR crop (1)). +.PP +.SH SOURCE +.B \*9/src/cmd/resample.c +.SH "SEE ALSO +.IR crop (1), +.IR image (6) +.SH BUGS +Faster algorithms exist, but this implementation produces correct pictures. |