[Pkg-gmagick-im-team] Bug#914120: imagemagick: Enable HEIF/HEIC image format support

Manfred Stock m-debian at nfred.ch
Mon Nov 19 15:26:09 GMT 2018


Source: imagemagick
Version: 8:6.9.10.14+dfsg-7
Severity: wishlist
Tags: patch

Dear Maintainer,

I noticed that the current ImageMagick packages don't support the HEIF/HEIC
image format [1], which seems like it is becoming more common, especially in
the Apple world, and therefore images in this format are popping up in the wild
more often now. It would thus be nice if the ImageMagick package in Debian
would support this format, particularly since the currently packaged version
has at least basic support for the format and the required dependencies are
already available in Debian (and used by Gimp and Krita as it seems).

The attached patch seemed to be sufficient to enable the support, using
packages built with the patch applied, I was able to convert example images
from eg. [2] (which can also be retrieved from [3]) to other formats or run
identify(1) on them, which was failing with
    identify-im6.q16: no decode delegate for this image format `HEIC' @ error/constitute.c/ReadImage/560.
before.

Kind regards
Manfred


[1] https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format
[2] http://nokiatech.github.io/heif/examples.html
[3] https://github.com/nokiatech/heif/tree/gh-pages/content

-- Package-specific info:
ImageMagick program version
---------------------------
animate:  ImageMagick 6.9.10-14 Q16 x86_64 20181023 https://imagemagick.org
compare:  ImageMagick 6.9.10-14 Q16 x86_64 20181023 https://imagemagick.org
convert:  ImageMagick 6.9.10-14 Q16 x86_64 20181023 https://imagemagick.org
composite:  ImageMagick 6.9.10-14 Q16 x86_64 20181023 https://imagemagick.org
conjure:  ImageMagick 6.9.10-14 Q16 x86_64 20181023 https://imagemagick.org
display:  ImageMagick 6.9.10-14 Q16 x86_64 20181023 https://imagemagick.org
identify:  ImageMagick 6.9.10-14 Q16 x86_64 20181023 https://imagemagick.org
import:  ImageMagick 6.9.10-14 Q16 x86_64 20181023 https://imagemagick.org
mogrify:  ImageMagick 6.9.10-14 Q16 x86_64 20181023 https://imagemagick.org
montage:  ImageMagick 6.9.10-14 Q16 x86_64 20181023 https://imagemagick.org
stream:  ImageMagick 6.9.10-14 Q16 x86_64 20181023 https://imagemagick.org

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_CH.utf8, LC_CTYPE=de_CH.utf8 (charmap=UTF-8), LANGUAGE=de_CH:de (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

-- no debconf information
-------------- next part --------------
>From eb2adfa2cea8dc852a70837f13263f627cb9de03 Mon Sep 17 00:00:00 2001
From: Manfred Stock <m-debian at nfred.ch>
Date: Mon, 19 Nov 2018 09:34:11 +0100
Subject: [PATCH] Enable HEIF/HEIC support

---
 debian/control                | 6 +++---
 debian/control.d/noquantum.in | 2 +-
 debian/control.d/quantum.in   | 2 +-
 debian/copyright              | 1 +
 debian/rules                  | 1 +
 5 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index a85e22e2f..215e9fdb0 100644
--- a/debian/control
+++ b/debian/control
@@ -29,7 +29,7 @@ Build-Depends: debhelper (>= 11),
  ghostscript, libdjvulibre-dev, libexif-dev,
  libjpeg-dev, libopenjp2-7-dev,
  libopenexr-dev, libperl-dev, libpng-dev, libtiff-dev,
- libwmf-dev,
+ libwmf-dev, libheif-dev,
 # libgraphviz-dev, incompatible license against fftw
 # for converting svg
  libpango1.0-dev, librsvg2-bin, librsvg2-dev, libxml2-dev,
@@ -281,7 +281,7 @@ Depends:
  libexif-dev, libfreetype6-dev, libjpeg-dev, libopenjp2-7-dev,
  liblcms2-dev, liblqr-1-0-dev, libltdl-dev, libopenexr-dev, libpng-dev,
  librsvg2-dev, libtiff-dev, libwmf-dev, libx11-dev, libxext-dev, libxml2-dev,
- libxt-dev, zlib1g-dev,
+ libxt-dev, zlib1g-dev, libheif-dev,
  pkg-config,
  ${misc:Depends}
 # remove breaks/replaces after jessie +2
@@ -496,7 +496,7 @@ Depends:
  libexif-dev, libfreetype6-dev, libjpeg-dev, libopenjp2-7-dev,
  liblcms2-dev, liblqr-1-0-dev, libltdl-dev, libopenexr-dev, libpng-dev,
  librsvg2-dev, libtiff-dev, libwmf-dev, libx11-dev, libxext-dev, libxml2-dev,
- libxt-dev, zlib1g-dev,
+ libxt-dev, zlib1g-dev, libheif-dev,
  pkg-config,
  ${misc:Depends}
 # remove breaks/replaces after jessie +2
diff --git a/debian/control.d/noquantum.in b/debian/control.d/noquantum.in
index 57df53b64..c6bdff907 100644
--- a/debian/control.d/noquantum.in
+++ b/debian/control.d/noquantum.in
@@ -28,7 +28,7 @@ Build-Depends: debhelper (>= 11),
  ghostscript, libdjvulibre-dev, libexif-dev,
  libjpeg-dev, libopenjp2-7-dev,
  libopenexr-dev, libperl-dev, libpng-dev, libtiff-dev,
- libwmf-dev,
+ libwmf-dev, libheif-dev,
 # libgraphviz-dev, incompatible license against fftw
 # for converting svg
  libpango1.0-dev, librsvg2-bin, librsvg2-dev, libxml2-dev,
diff --git a/debian/control.d/quantum.in b/debian/control.d/quantum.in
index 82fbebce4..1647e3c6e 100644
--- a/debian/control.d/quantum.in
+++ b/debian/control.d/quantum.in
@@ -87,7 +87,7 @@ Depends:
  libexif-dev, libfreetype6-dev, libjpeg-dev, libopenjp2-7-dev,
  liblcms2-dev, liblqr-1-0-dev, libltdl-dev, libopenexr-dev, libpng-dev,
  librsvg2-dev, libtiff-dev, libwmf-dev, libx11-dev, libxext-dev, libxml2-dev,
- libxt-dev, zlib1g-dev,
+ libxt-dev, zlib1g-dev, libheif-dev,
  pkg-config,
  ${misc:Depends}
 # remove breaks/replaces after jessie +2
diff --git a/debian/copyright b/debian/copyright
index 3f062d9a5..84718b11a 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -123,6 +123,7 @@ Files: coders/heic.c
 Copyright: 2017 Anton Kortunov
 	   2017-2018 YANDEX LLC.
 License: ImageMagick
+Comment: use libheif and libde265 under LGPL-3+ and libx265 under GPL-2+
 
 Files: coders/ipl.c
 Copyright: 2008, Sean Burke
diff --git a/debian/rules b/debian/rules
index cc51d8ea8..4df8b920d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -83,6 +83,7 @@ STATIC_CONFIGURE_OPTIONS := \
 	--with-djvu \
 	--with-openjp2 \
 	--with-wmf \
+	--with-heic \
 	--without-gvc \
 	--enable-shared \
 	--without-dps \
-- 
2.19.1



More information about the Pkg-gmagick-im-team mailing list