← Back

ofxWebpAnimation

github.com/haradama/ofxWebpAnimation · @haradama
OF 0.12 Graphics Utilities

An openFrameworks addon for decoding and rendering animated WebP images using the libwebp image codec.

1 0 Last commit 1y ago Created 1y ago

README

ofxWebpAnimation



An openFrameworks addon for decoding and rendering animated WebP images using the libwebp image codec. It supports frame extraction, timing, and GPU texture upload for smooth playback in creative coding environments.

Features



Requirements



Installation



Clone into your addons/ folder



cd openFrameworks/addons
git clone https://github.com/haradama/ofxWebpAnimation.git


Install dependencies



macOS (Homebrew)



brew install webp pkg-config


Ubuntu / Debian



sudo apt-get install libwebp-dev pkg-config


Windows (MSYS2)



pacman -S mingw-w64-x86_64-libwebp mingw-w64-x86_64-pkg-config


Usage



Place an animated WebP file (e.g.,
animation.webp) in your app's bin/data/ folder.

Example



#include "ofMain.h"

include "ofxWebpAnimation.h"

class ofApp : public ofBaseApp { ofxWebpAnimation anim; void setup() { anim.load(ofToDataPath("animation.webp")); } void update() { anim.update(); } void draw() { anim.draw(0, 0); } };


License



This project is licensed under the MIT License. See the LICENSE file for details.

Example Project



Check out the included
example-basic/` for a minimal working demo.

Get this addon

HTTPS
SSH