Bug 2164329

Summary: AVIF files can't be opened if downloaded from fedora-repo as rpm or flatpak
Product: [Fedora] Fedora Reporter: bugzillllllaaaaaa <lerkicaspu>
Component: gimpAssignee: Nils Philippsen <nphilipp>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 37CC: enpontus, jehan.marmottard, jridky, nphilipp, phracek, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-01-25 09:31:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
a avif file for checking
none
error massage none

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).