Thumbnail size: VIPS Reference Manual

## Thumbnail size

You can set the bounding box of the generated thumbnail with the `--size` option. For example:

    $ vipsthumbnail shark.jpg --size 200x100

Use a single number to set a square bounding box. You can omit either number but keep the x to mean resize just based on that axis, for example:

    $ vipsthumbnail shark.jpg --size 200x

Will resize to 200 pixels across, no matter what the height of the input image is.

You can append `<` or `>` to mean only resize if the image is smaller or larger than the target.

You can append `!` to force a resize to the exact target size, breaking the aspect ratio.