Add high-quality After Effects animations to your iOS or Android app without converting them to video files
Swap text or images inside a running animation at runtime without modifying the original After Effects source
Reduce animation file sizes by switching from JSON-based formats like Lottie to the binary PAG format
Preview and check animation performance before handing files to developers using the PAGViewer desktop app
| tencent/libpag | ffffffff0x/1earn | cnr-isti-vclab/meshlab | |
|---|---|---|---|
| Stars | 5,672 | 5,670 | 5,675 |
| Language | C++ | C++ | C++ |
| Setup difficulty | moderate | easy | moderate |
| Complexity | 3/5 | 1/5 | 3/5 |
| Audience | developer | ops devops | researcher |
Figures from each repo's GitHub metadata at analysis time.
Precompiled binaries available for most platforms, building from source requires CMake, Ninja, and platform-specific compilers.
libpag is a library from Tencent for playing back animations that were created in Adobe After Effects. Instead of converting animations to video files, designers export them as PAG files using a plugin, and libpag renders those files in real time inside an app. The result is a compact, scalable animation that can be modified at runtime, unlike a pre-rendered video. The PAG file format is designed to preserve all After Effects features, including effects from third-party plugins, vector shapes, and raster layers. The files are stored in a binary format that decodes about ten times faster than the JSON-based formats used by some other animation tools, and they tend to be roughly half the size for equivalent content. A desktop viewer app called PAGViewer lets designers preview their animations and check performance metrics before handing files off to developers. The library runs on iOS, Android, macOS, Windows, Linux, Harmony OS, and the web. Tencent uses it in its own major apps, including WeChat and QQ. Developers integrate it using standard package managers: CocoaPods for iOS, Maven for Android, OHPM for HarmonyOS, and a JavaScript bundle for web projects. Once integrated, the SDK provides APIs to swap out text or images inside an animation at runtime, combine multiple PAG files, and modify layer properties without redesigning the original After Effects file. Building the library from source requires a fairly involved toolchain including CMake, Ninja, and platform-specific compilers. Tencent publishes precompiled binaries for most platforms through their release page, so most developers will not need to build from source. The project is open source under the Apache 2.0 license. The full README is longer than what was shown.
Tencent's library for playing After Effects animations as compact, editable PAG files inside iOS, Android, web, and desktop apps, used in WeChat and QQ, with runtime text and image swapping.
Mainly C++. The stack also includes C++, JavaScript, CocoaPods.
Use freely for any purpose including commercial use, as long as you keep the copyright notice (Apache 2.0).
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.