---
name: "IMG_LoadWEBPAnimation_IO"
section: "3"
platform: "linux"
package: "libsdl3-image-doc"
version: "3.2.4+ds-1+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/IMG_LoadWEBPAnimation_IO"
---

# IMG\_LoadWEBPAnimation\_IO(3)

Load a WEBP animation directly.

## NAME

IMG\_LoadWEBPAnimation\_IO - Load a WEBP animation directly.

## HEADER FILE

Defined in SDL3\_image/SDL\_image.h

## SYNOPSIS

```
#include "SDL3_image/SDL_image.h"
```

**IMG\_Animation \* IMG\_LoadWEBPAnimation\_IO(SDL\_IOStream \*src);**

## DESCRIPTION

If you know you definitely have a WEBP image, you can call this function, which will skip SDL\_image's file format detection routines. Generally it's better to use the abstract interfaces; also, there is only an SDL\_IOStream interface available here.

## FUNCTION PARAMETERS

- *src*

  an SDL\_IOStream that data will be read from.

## RETURN VALUE

( **IMG\_Animation**\
  \*) Returns a new

**IMG\_Animation** , or NULL on error.

## AVAILABILITY

This function is available since SDL\_image 3.0.0.

## SEE ALSO

**•**(3), [**IMG\_LoadAnimation**(3)](/IMG_LoadAnimation/3.md), **•**(3), [**IMG\_LoadAnimation\_IO**(3)](/IMG_LoadAnimation_IO/3.md), **•**(3), [**IMG\_LoadAnimationTyped\_IO**(3)](/IMG_LoadAnimationTyped_IO/3.md), **•**(3), [**IMG\_FreeAnimation**(3)](/IMG_FreeAnimation/3.md)
