5.8k sao GitHub và vẫn tăng — Tencent/libpag là dự án HTML mà TopGit đang theo dõi trên nền tảng. The official rendering library for PAG (Portable Animated Graphics) files that renders After Effects animations natively across multiple platforms.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
libpag is a real-time rendering library for PAG (Portable Animated Graphics) files, capable of
rendering both vector-based and raster-based animations across various platforms, including iOS,
Android, OpenHarmony, macOS, Windows, Linux, and the Web.
PAG is an open-source file format designed for recording animations. You can create and export PAG
files from Adobe After Effects using the PAGExporter plugin and preview them in the PAGViewer app,
both available on macOS and Windows.
PAG is widely used in major Tencent apps like WeChat, Mobile QQ, Honor of Kings, Tencent Video, and
QQ Music, as well as in thousands of third-party apps, reaching hundreds of millions of users.
Advantages
Highly efficient file format
Benefiting from its highly efficient binary format, PAG files decode 10 times faster than JSON files
and are about 50% smaller in file size for the same animations. Designers can also easily include
beautiful animations with bitmaps or audiovisual media in a single file without needing additional
attachments.
All AE features supported
While other solutions may only support exporting limited vector-based AE features, PAG combines
vector-based and raster-based exporting techniques to support all AE animations in a single file.
This means third-party plugin effects in AE can also be exported.
Measurable performance
PAG provides a monitoring panel in PAGViewer that displays normalized performance data for PAG files,
making it easy for designers to review and optimize performance without needing developers. With
numerous automatic optimization techniques from the PAGExporter plugin, you can create animations
with impressive visual effects and excellent performance more efficiently.
PAGViewer includes a monitoring panel
Runtime editable animations
With the flexible editing APIs from the PAG SDK, developers can easily modify the layer structure of
a single PAG file, combine multiple PAG files into one composition, or replace text and images with
all pre-designed animation effects applied at runtime. This significantly reduces the coding work
required for features like video templates.
System Requirements
iOS 15.0+
Android 5.0+
HarmonyOS Next 5.0.0(12)+
macOS 12.0+
Windows 7.0+
Chrome 69.0+ (Web)
Safari 15.0+ (Web)
Getting Started
We currently only publish precompiled libraries for iOS, Android, macOS, Web, and OpenHarmony. You
can build libraries of other platforms from the source code. The latest releases can be downloaded
from here.
iOS Integration
You can download the framework from the release page or add libpag to your project using CocoaPods.
To add the pod to your Podfile, include:
pod 'libpag'
And then run:
pod install
After installing the CocoaPod, import libpag into your project with:
#import <libpag/xxx.h>
Android Integration
You can download the AAR from the release page or add libpag to your project using Maven:
Edit the build.gradle file in the root of your project and add mavenCentral() to the repositories section:
Explore these projects to learn how to use the libpag APIs:
https://github.com/libpag/pag-ios
https://github.com/libpag/pag-android
https://github.com/libpag/pag-web
Documentation
iOS API Reference
Android API Reference
Web API Reference
You can find additional documentation on pag.io
Development
We recommend using the CLion IDE on macOS for development.
Branch Management
The main branch is our active development branch, containing the latest features and bug fixes.
The release/ branches are our stable milestone branches, fully tested. We periodically create a
release/{version} branch from the main branch. After a release/{version} branch is created,
only high-priority fixes are checked into it.
Note: This repository only contains the latest code since PAG 4.0. For legacy PAG 3.0 versions,
you can download the precompiled libraries from here.
Build Prerequisites
Xcode 13.0+
GCC 9.0+
Visual Studio 2019+
NodeJS 14.14.0+
Ninja 1.9.0+
CMake 3.13.0+
QT 6.2.0+
NDK 28+ (28.0.13004108 recommended)
Emscripten 3.1.58+
Dependency Management
libpag uses the depsync tool to manage third-party dependencies.
For macOS platform:
Run the script located in the root directory of the project:
./sync_deps.sh
This script will automatically install the necessary tools and sync all third-party repositories.
For other platforms:
First, ensure you have the latest version of Node.js installed (you may need to restart your
computer afterward). Then, run the following command to install the depsync tool:
npm install -g depsync
Then, run depsync in the root directory of the project.
depsync
You might need to enter your Git account and password during synchronization. Ensure you have
enabled the git-credential-store so that CMakeList.txt can automatically trigger synchronization
next time.
Build
After synchronization, you can open the project with CLion and build the PAG library.
For macOS:
No additional CLion configuration is needed.
For Windows:
Follow these steps to configure CLion correctly:
Ensure you have installed the [Desktop development with C++] and [Universal Windows Platform development] components for VS2019.
Open the File->Settings panel, go to Build, Execution, Deployment->Toolchains, and set the toolchain to Visual Studio with amd64 (Recommended) or x86 architecture.
Note: If you encounter issues during the CMake build, update to the latest version of the CMake
command-line tool and try again.
Support Us
If you find libpag helpful, please give us a Star. We truly appreciate your support :)
License
libpag is licensed under the Apache Version 2.0 License
The copyright notice pertaining to the Tencent code in this repo was previously in the name of "THL
A29 Limited". That entity has now been de-registered. You should treat all previously distributed
copies of the code as if the copyright notice was in the name of "Tencent".
Privacy Policy
Please refer to the PAG SDK Personal Information Processing Rules when using the libpag SDK.
Data Collection
Binaries built from this repository collect no data. They contain no network requests or usage reporting, and the bundled privacy manifest (PrivacyInfo.xcprivacy) declares no data collection.
Official prebuilt releases distributed through pag.io and CocoaPods contain an additional anonymous usage statistics module on iOS and Android, which reports the following data to the Tencent Beacon analytics service (otheve.beacon.qq.com), at most once per SDK version per month: host app name and bundle identifier, operating system version and device model, GPU version and vendor, and the libpag SDK version. No user IDs, advertising identifiers, or other personal data are collected, and the data is used solely for SDK usage statistics. The privacy manifest bundled in the official releases declares this data collection accordingly.
Contribution
If you have any ideas or suggestions to improve libpag, feel free to submit an
issue or a pull request.
Before doing so, please read our Contributing Guide.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/Tencent/libpag là nguồn chính thức.
Tencent/libpag có bao nhiêu sao?
Tencent/libpag có 5.8k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/Tencent/libpag. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
Tencent/libpag có những chủ đề gì?
GitHub topics của Tencent/libpag: "after-effects", "animation", "keyframes", "libpag", "pag". TopGit xếp repo vào nhóm UI / UX.
Tencent/libpag có trang demo không?
Dự án có trang chủ ở https://pag.io. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
Tencent/libpag còn đang phát triển không?
Commit gần nhất trên Tencent/libpag là 3 tháng trước (theo timestamp GitHub). Repo có 533 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Tencent/libpag viết bằng ngôn ngữ gì?
Tencent/libpag chủ yếu viết bằng HTML. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
libpag có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về libpag.