---
name: "im_zoom"
section: "3"
platform: "linux"
package: "libvips-dev"
version: "7.20.7-1+b3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/im_zoom"
---

# im\_zoom(3)

zoom an image

## NAME

im\_zoom - zoom an image

## SYNOPSIS

**#include \<vips/vips.h\>**

**int im\_zoom(in, out, xfac, yfac)**\
 **IMAGE \*in, \*out;** **int xfac, yfac;**

## DESCRIPTION

**im\_zoom()** zooms (ie. nearest neighbour upsampling) the image held by the image descriptor in by factors xfac and yfac and writes the result to the image descriptor out.  Works for any type of image, even LABPACK.

## RETURN VALUE

The function returns 0 on success and -1 on error.

## SEE ALSO

[im\_copy(3)](/im_copy/3.md), [im\_affine(3)](/im_affine/3.md).

## COPYRIGHT

National Gallery, 1994.
