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.64k stars 764 forks source link

Add .avif (AV1 Image File Format) support #1143

Closed utack closed 2 years ago

utack commented 5 years ago

Inspired by https://github.com/derf/feh/issues/437

The AV1 Image File Format (AVIF) is a new image format based on the AV1 video codec. It would be great if support for this format could be added.

The AVIF spec can be found here: https://aomediacodec.github.io/av1-avif/ Netflix published a bunch of test images: http://download.opencontent.netflix.com/?prefix=AV1/Chimera/AVIF/

Seems far outside the scope of the project to implement everything, but It probably makes sense to see if something like a "libavif" will be made, or if ffmpeg can be tied into the app to decode it, once support lands there.

EwoutH commented 5 years ago

libavif tagged a new release, 0.1.3. See Colorist for an example implementation.

tibbi commented 5 years ago

that library and project arent even related to android

ForgottenUmbrella commented 4 years ago

Support for uncommon file types should be requested upstream, in the Android Open Source Project for image formats, and the ExoPlayer repo for video formats. This would mean that all galleries and video players could automatically support the formats without everyone needing to implement their own special logic to handle them.

TheLastGimbus commented 3 years ago

Hi there! I recently spent good few hours planning on compressing my whole photo collection, and wanted to use AV1 for all videos, as it seems totally based. I found that

@tibbi if you could get it to work in SimpleGallery it would be awesome!

Support for uncommon file types should be requested [...] in the ExoPlayer repo for video formats.

Seems like you need to compile av1 extension yourself to add it to exoplayer:

tjk918 commented 2 years ago

Even in Android 12 (has native avif support), this app still does not open or recognize avif. Simple Files from the same Simple Mobile Tools project, however, will display avif image thumbnails. I can't say I'm not confused. Does Simple Files use a thumbnailing library that supports avif? Either way it would be better to get this implemented sooner or later to stay ahead of the curve. It seems like with more phones having hardware based av1 decoders and encoders built in, it could become the new standard for photos on Android.

tibbi commented 2 years ago

It should technically be there in 6.23.2 on Android 12+. It doesnt show up on my device though, but it might be some codec glitch or something. We will see.

TheLastGimbus commented 2 years ago

In 12+ ? That is like... almost noone?

tibbi commented 2 years ago

well, thats when Android received the support. And no, over 23% of new app installs come from Android 12

TheLastGimbus commented 2 years ago

Then how does Google Photos work?

over 23%

Well... cool... what about 77% then? Besides, these are data from google play... we don't know how many % have apk...

tibbi commented 2 years ago

Google Photos likely have some deep support for it, they many tons of developers for every aspect of the app

kolAflash commented 2 years ago

I also like to see support for new, patent free formats like AVIF 👍😀

 

Sadly for me AVIF pictures on Android-10 (e/OS/ on FP3+) stay black. I guess this is due to Android-10!?

 

Related or maybe duplicate requests: