Repository navigation
Pillow webp support #6806
Package Information
Description & Use CaseWe need WebP image decoding and encoding support for mobile (Android/iOS) Flet apps. Currently, on Android ARM64 builds, image processing libraries (such as Pillow or custom image pipelines) lack the underlying Adding |
Replies: 2 comments
|
WebP is now supported in Nothing to change in your app — same version, so a rebuild picks it up: dependencies = [
"flet",
"pillow",
]
Note We did not add the One thing worth knowing for your CDN case: displaying WebP already worked. Give it a try and let us know! 🤟🏿 |
|
Thank you! |
WebP is now supported in
pillowon Android and iOS: https://pypi.flet.dev/pillowNothing to change in your app — same version, so a rebuild picks it up:
Image.open()on a.webpnow works, and so does saving one: lossy and lossless, alpha, EXIF, and animated WebP frame by frame.Note
We did not add the
webppackage you linked, because it would not have fixed the error you hit. It registers no PIL plugin, soPIL.Image.open()would still have raised. The real gap was that ourpillowwas built withoutlibwebp— now shipped asflet-libwebpand linked in. If you specifically need pywebp's byte-budget encoding (WebPConfig.target_size), open a new requ…