SimpleMobileTools / Simple-Gallery

A premium app for managing and editing your photos, videos, GIFs without ads
https://www.simplemobiletools.com
GNU General Public License v3.0
3.61k stars 762 forks source link

Play animated heic files #1658

Open subpub opened 4 years ago

subpub commented 4 years ago

I don't know if android supports animations for HEIC, but simpleg recognized the image but doesn't show thumbnails nor play it.

https://github.com/nokiatech/heif/tree/gh-pages/content/image_sequences

ForgottenUmbrella commented 4 years ago

@subpub What's your Android version? Only Android 10 supports HEIC files.

subpub commented 4 years ago

@ForgottenUmbrella android 9. it says here even https://android-developers.googleblog.com/2018/03/previewing-android-p.html

ForgottenUmbrella commented 4 years ago

You may have misread that source: it only mentions encoding, not decoding. These sources mention support in Android 10: https://source.android.com/devices/camera/heif https://developer.android.com/about/versions/10/features#heif From testing, it seems Android's support is only partial: image sequences don't appear to be supported, as I can only see the thumbnail and first frame on Android 10 (in Simple Gallery as well as Google Photos).

subpub commented 4 years ago

Android 9 can display pure still images alright:

Camera roll (albeit only when directly opening .heic file from Amaze)

SimpleG (it has some problem sometimes with thumbnail, zooming. I haven't reported those, but hey still displays mostly)

https://framapic.org/i5gTkpDd2g9P/gULbozwOrwR0

But yeah No Image-Sequence for Android :(

ForgottenUmbrella commented 4 years ago

Android 11 will support animated HEIF sequences. It looks like we'll need to switch from BitmapFactory to using the ImageDecoder API to support it.