Enable WebP on sys targets via libwebp (no API changes) #1991
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Baseline integration of
libwebp v1.6.0for Limesystargets — no breaking changes. There are no Haxe/Lime API changes; existing loaders now consume static.webpjust like PNG/JPEG:Image.__fromFile(...)callsNativeCFFI.lime_image_load_fileImage.__fromBytes(...)callsNativeCFFI.lime_image_load_bytesWhy WebP
Release readiness (request for inclusion)
.webpassets with no impact on the rest of the pipeline.Given the small change set, lack of breaking changes, and clear value, I hope this can be included in the next Lime release.
Status
Verified locally (build & functionality):
Community validation welcome:
How to test
.webpimage to your OpenFL/Lime assets.Image.fromFile("assets/picture.webp")orImage.fromBytes(bytes)).Limitations