yekeskin / flutter_avif

A flutter plugin to view and encode avif images.
https://pub.dev/packages/flutter_avif
MIT License
61 stars 17 forks source link

[Documentation suggestion] What's under the hood for each platform #27

Open wiradikusuma opened 1 year ago

wiradikusuma commented 1 year ago

I think it'd be great if there's an explanation of how this library does its magic for each platform. Something like, "Android above version X uses native support (no extra download). Otherwise, it uses the embedded native library."

So that the users of this library can make informed decisions about whether it's worth it to use this or default to the built-in ones (e.g., for WebP).

What do you think?

yekeskin commented 1 year ago

Thanks for the suggestion. The plugin comes with libavif binaries on all platforms it supports and uses them regardless of the platform's native support. I think it would be beneficial to the user if we add a section to the readme about this.

We can also document the binary size impact of the plugin on each platform. I haven't measured it on all platforms but for example on Android, the plugin adds between 1-2 MBs to the APK. (release build with ABI splitting)