Bug 2164329 - AVIF files can't be opened if downloaded from fedora-repo as rpm or flatpak
Summary: AVIF files can't be opened if downloaded from fedora-repo as rpm or flatpak
Alias: None
Product: Fedora
Classification: Fedora
Component: gimp
Version: 37
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2023-01-25 08:53 UTC by bugzillllllaaaaaa
Modified: 2023-01-25 11:40 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2023-01-25 09:31:07 UTC
Type: Bug

Attachments (Terms of Use)
a avif file for checking (20.39 KB, application/octet-stream)
2023-01-25 08:53 UTC, bugzillllllaaaaaa
no flags Details
error massage (213.83 KB, image/png)
2023-01-25 09:00 UTC, bugzillllllaaaaaa
no flags Details

Description bugzillllllaaaaaa 2023-01-25 08:53:50 UTC
Created attachment 1940363 [details]
a avif file for checking

Description of problem:
the problem is gimp downloaded from fedora repo as flatpak or rpm in both case it cant open avif files but gimp supports it from https://www.gimp.org/news/2020/10/07/gimp-2-10-22-released/
hence it is a build error as gimp downloaded from flathub on same fedora instance can open the file even act normally when downloaded as snap can anyone look into

Steps to Reproduce:
1.open a file as avif on gimp installed from fedoraproject-repo as flatpak or .rpm
2. open that file using that gimp and see the error.
3.it says it can't open that file due
it is unsupported

Comment 1 bugzillllllaaaaaa 2023-01-25 09:00:46 UTC
Created attachment 1940364 [details]
error massage

test is new vm fresh install with patched with all updates till that date

Comment 2 Josef Ridky 2023-01-25 09:31:07 UTC
Hi! AVIF support in GIMP uses libheif which is not available in Fedora for (I assume) legal reasons. For the future GIMP version 3, there exists a 3rd party alternative which uses libavif instead (which is in Fedora): https://github.com/novomesk/gimp-avif-plugin -- but we're not there yet... Sorry!

Comment 3 Jehan 2023-01-25 11:40:40 UTC
Hi Josef,

If I may add something: libheif uses a modular approach with codecs so Fedora can make a libheif package containing only the AV1 encoder/decoder (legal issues are only on the HEVC enc/decoders, I think), which will in turn will give AVIF support to GIMP (but not HEIC). The very nice thing if this is done this way is that since encoder/decoder checks are done at runtime, if someone installs through another way the HEVC codecs (e.g. we could imagine the RPMFusion project would make a libheif-hevc package adding only these), GIMP would automatically gain HEIC support (no binary change on your side).

So it would be really awesome if Fedora could package libheif (with only AV1 codecs) and build GIMP with support. By default, GIMP will have AVIF support and there should not be legal issues (though I'm not a lawyer). Then it also let people handle the HEIC support through other channels, too.

Could Fedora reconsider?

P.S.: by the way, the developer of the third-party plug-in you mention (using libavif) is the same developer which maintains our official AVIF/HEIC plug-in in GIMP. It's good that you also package their side plug-in, though we'd love you also package the official one (the side plug-in would take over for the AVIF support if both are installed).

Note You need to log in before you can comment on or make changes to this bug.