Bug 1199987 - broken/missing HEIF support (and HEIC images)
Summary: broken/missing HEIF support (and HEIC images)
Status: RESOLVED WONTFIX
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Other (show other bugs)
Version: Leap 15.4
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: openSUSE GNOME
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-27 15:11 UTC by Stanislav Brabec
Modified: 2023-07-17 00:28 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Brabec 2022-05-27 15:11:42 UTC
openSUSE Leap has a broken HEIF image support.

The problem raises, as the latest Apple products has it as default image format, and moderm Android applications support it as well.

As far as I see, there are following problems:

libheif: gdk-pixbuf-loader does not work: Problem of missing scriptlets.

geeqie: Problem (at least) with ignored HEIF (and many other) formats in the spec file.

ristretto: Not yet analyzed.

GIMP: gimp-plugin-heif is not part of openSUSE at all. It could be imported from Packman.
Comment 1 Stanislav Brabec 2022-05-27 15:16:35 UTC
libheif: https://build.opensuse.org/request/show/979508 to Factory
Comment 2 Stanislav Brabec 2022-05-27 15:23:51 UTC
geeqie: https://build.opensuse.org/request/show/979510 to Factory
Comment 3 Stanislav Brabec 2022-05-27 17:18:22 UTC
Another broken package:

file: HEIF support exists there, but it is broken by too wide checks for MP4. My HEIC images (Samsung Galaxy Note10) are recognized as:
20220412_172807.heic: ISO Media

Note: Actually, ristretto was tested on 15.3. Needs to be tested on 15.4.
Comment 5 OBSbugzilla Bot 2022-06-17 16:40:07 UTC
This is an autogenerated message for OBS integration:
This bug (1199987) was mentioned in
https://build.opensuse.org/request/show/983434 Factory / geeqie
Comment 6 Stanislav Brabec 2022-06-17 17:03:00 UTC
Regarding GIMP: It contains native HEIF support for a long time, so gimp-plugin-heif is obsolete now.

But it is disabled in the spec for 15.4, where libheif reached SLE15 SP4. (Even 15.3 has required packages, but not SLE15 SP3.)
%if 0%{?suse_version} >= 1550
%bcond_without libheif

An easy fix enables support for HEIF in 15.4 and SLE15 SP4:
%if 0%{?suse_version} >= 1500
%bcond_without libheif

As suse_version is equal to 1500 for both 15.3 and 15.4, it cannot discriminate between 15.3 and 15.4.

But there is a problem: GIMP checks during configure for encoders and decoders, and then probably modifies the GUI. (Needs check.)

What is wrong with it? openSUSE version of libheif does not support patent encumbered codecs like H265/HEVC, which is the most often used HEIF codec.
Comment 7 Andreas Schneider 2022-07-18 07:12:03 UTC
HEIF (HEVC) is a patent minefield. You wont see HEIF support in openSUSE. If you want a libheif which supports the HEIF format, install it from Packman.
Comment 8 Stanislav Brabec 2022-07-18 10:51:07 UTC
Well, but we still should support libheif in packages, where it is appropriate. Otherwise replacement of libre libheif from openSUSE by the Packman one will not work.
Comment 9 Andreas Schneider 2022-07-18 15:22:56 UTC
It is unclear against which package or component this bug is.

If it is a gnome application, then the application need to detect if libheif has been compiled with HEIF support or not. This is probably something you should report upstream.

If there is a packaging bug for libheif please open a new bug and provide more details or how to reproduce it.
Comment 10 Stanislav Brabec 2022-07-18 16:28:45 UTC
At the first, this was a generic reminder. But later I realized that several packagers ignored libheif support. gimp, geeqie, in SLE15 SP3 it was also imagemagick.

geeqie is now fixed. gimp still needs some work.

I'll check later, what can be done about it.
Comment 11 Swamp Workflow Management 2022-10-26 10:23:16 UTC
SUSE-RU-2022:3733-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 1199987
CVE References: 
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    libheif-1.12.0-150400.3.3.1
SUSE Linux Enterprise Module for Desktop Applications 15-SP4 (src):    libheif-1.12.0-150400.3.3.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.