Avif images can't be opened in fedora in gimp from dnf and flatpak-registry.fedoraproject.org

i was trying to open some avif images but i cant open it gimp have support for avif and heif but i cant open download from dnf-fedora or flatpak-flathub
but downloaded from snap-snapcryft or flatpak-flathub works, it opened avif now i tested on a ubuntu vm and installed gimp with apt, flatpak, snap all worked.
what was wrong in fedora that it does not work.