---
name: "im_image_sanity"
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_image_sanity"
---

# im\_image\_sanity(3)

check image descriptors for sanity

## NAME

im\_image\_sanity - check image descriptors for sanity

## SYNOPSIS

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

int im\_image\_sanity( IMAGE \*im )

## DESCRIPTION

**[im\_image\_sanity(3)](/im_image_sanity/3.md)** performs a few simple checks on the IMAGE for bad fields. If it finds a problem it prints a warning message and returns -1.

It is called from various places within VIPS to try to catch errors early.

## RETURN VALUE

All functions returns 0 on success and -1 on error.

## SEE ALSO

[im\_incheck(3)](/im_incheck/3.md).
