kimageformat-plugins should be built with HEIC / HEIF support

Bug #1951278 reported by Christoph Singer
80
This bug affects 17 people
Affects Status Importance Assigned to Milestone
kimageformats (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Description: Ubuntu 21.10
Release: 21.10
kimageformat-plugins:
  Installiert: 5.88.0-0ubuntu1~ubuntu21.10~ppa1

(but effects older versions, too)

Currently, kimageformat-plugins is built without support for HEIC / HEIC images. That's why Gwenview, Dolphin and other KDE apps can't show .heif images from modern smartphones like recent iPhones.

Enabling heif support is a matter of installing libheif-dev and rebuilding kimageformat-plugins with option KIMAGEFORMATS_HEIF=ON.

Please enable this by default. Thank you!

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kimageformats (Ubuntu):
status: New → Confirmed
Revision history for this message
Vöggur Guðmundsson (voggur) wrote :

This is even listed in the release note KDE Frameworks 5.80.0
https://kde.org/announcements/frameworks/5/5.80.0/#kimageformats

Please enable :)

Revision history for this message
EdwardO (edwardooo) wrote :

Here is the required change to debian package control/rule information:

--- i/debian/control
+++ w/debian/control
@@ -9,4 +9,5 @@ Build-Depends: cmake (>= 3.16~),
                extra-cmake-modules (>= 5.90.0~),
                libavif-dev (>= 0.8.2~),
+ libheif-dev (>= 1.10.0~),
                libkf5archive-dev,
                libopenexr-dev,
--- i/debian/rules
+++ w/debian/rules
@@ -15,4 +15,7 @@ endif
        dh $@ --with kf5,pkgkde_symbolshelper --buildsystem kf5 --without build_stamp

+override_dh_auto_configure:
+ dh_auto_configure --buildsystem=kf5 -O--buildsystem=kf5 -- -DKIMAGEFORMATS_HEIF=ON
+
 override_dh_auto_test:
        xvfb-run -a dh_auto_test $(fail_param)

I tested it on Ubuntu 22.04 alpha, libheif1 1.12.0-2build1, kimageformat-plugins 5.92.0-0ubuntu1.
The following additional files are installed:

dpkg -L kimageformat-plugins | grep heif
/usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/kimg_heif.so
/usr/share/kservices5/qimageioplugins/heif.desktop

I can contribute it but I don't see the ubuntu package git repo.

Revision history for this message
EdwardO (edwardooo) wrote :

Also, in the meantime, here are the commands to manually rebuild & install the package with support: https://superuser.com/a/1713233/196387

Revision history for this message
Rik Mills (rikmills) wrote :

Fixed in Kinetic with a sync from Debian

Changed in kimageformats (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.