yekeskin / flutter_avif

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

[Feature request] Keep EXIF #45

Closed JerryZRF closed 6 months ago

JerryZRF commented 7 months ago

Could u please keep the EXIF when encode AVIF from a photo?

yekeskin commented 7 months ago

It seems doable. Flutter does not provide a way to read exif data but we can use a plugin like exif for that.

JerryZRF commented 6 months ago

So could u please make it automatically when encoding? Add a param that enables it to the encodeAvif() method. Thanks.

yekeskin commented 6 months ago

I was able to work on exif support yesterday. I have added the keepExif paramter to the encodeAvif function which will be false by default. It is a little bit slow for now because the library I am using does not provide a way to read exif data without decoding the image. So, I need to find a better solution to read exif data before publishing an update. Check out exif_support branch if you want to try.