---
name: "im_invalidate"
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_invalidate"
---

# im\_invalidate(3)

flush caches related to an image

## NAME

im\_invalidate - flush caches related to an image

## SYNOPSIS

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

**void im\_invalidate( IMAGE \*im )**

## DESCRIPTION

**[im\_invalidate(3)](/im_invalidate/3.md)** marks all caches related to the image as invalid and requring recalculation. It needs to be called if an image changes after being made: for example, after a paint action, or perhaps after a new frame has arrived from a video source.

Any invalidate callbacks registered on any of the affected images are triggered.

## SEE ALSO

[im\_prepare(3)](/im_prepare/3.md), [im\_region\_buffer(3)](/im_region_buffer/3.md), [im\_add\_invalidate\_callback(3)](/im_add_invalidate_callback/3.md).
