ImagePlus
ImagePlus
NOTE: This mod doesn't do anything by itself and is meant to be used by other mods or texture packs.
About
This mod allows developers and texture pack creators to use additional image formats like:
- WebP
- JPEG XL
- GIF
- QOI
It supports both static images and animated ones, without the need for additional code (you can use this with CCSprite or even geode::LazySprite without any issues).
For Developers
This mod has an API that allows you to decode images directly into RGBA buffers, as well as encode them back to various formats.
It also provides a way to control the playback of animated images, allowing you to pause, stop, resume and control the playback speed of animated images.
Libraries
This mod uses the following libraries:
License
This mod is licensed under the MIT License. See LICENSE.md for more details.
v1.1.1
- Made memory buffer allocations safer
v1.1.0
- Updated to Geode v5.0.0
- Added functions to decode into user buffer and read image header (by dankmeme01)
v1.0.5
- Updated to support Geode v5.0.0-beta.1
- Ported to new Events V2
v1.0.4
- Updated libwebp and libjxl to latest versions
- Improved performance of reading the file data on all platforms except Android
v1.0.3
- Fixed incompatibility when using kFmtRawData format
v1.0.2
- Fixed undefined behavior when calling
initWithImageDatawith invalid data/size
v1.0.1
- Fixed unwanted texture deletion when there's only one sprite that uses it
- Replaced giflib implementation with stb_image for better compatibility
- Added setting to allow falling back to cocos2d default PNG loading
v1.0.0
- Initial release
.geode files you get from this page. Some mods also require other mods as dependencies; you will need to find and install them yourself.