GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
RESAMPLE(1) FreeBSD General Commands Manual RESAMPLE(1)

resample - resample a picture

resample [ -x size ] [ -y size ] [ file ]

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 with the -x and -y options. An unadorned value sets the number of pixels of that dimension; a suffixed percent sign specifies a percentage. If only one of -x or -y is given, the other dimension is scaled to preserve the aspect ratio of the original image. Thus, -x50% will reduce the image to half its original dimension in both x and y.

The input should be a Plan 9 image as described in and the output will be a compressed 24-bit r8g8b8 image. To uncompress the image or change the pixel format, use iconv (see

/src/cmd/resample.c

Faster algorithms exist, but this implementation produces correct pictures.

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.