ImageMagick unsupported heic heif

I can not convert heic image to jpg from cli.

magick input.heic -quality 100% output.jpg

I get error:

magick: Unsupported feature: Unsupported codec input.heic @ error/heic.c/IsHeifSuccess/135.

I checked supported formats:

magick -list format

And heic is supported

HEIC* HEIC      r--   High Efficiency Image Format (1.12.0)
HEIF* HEIC      r--   High Efficiency Image Format (1.12.0)

identify -verbose also throws exception as above. How to solve problem?

Maybe this one:

I tryied sudo zypper in --repo packman libheif but I get error that package is not found in that repo.

I have 15.4 here. but the package name is libeif1, not libheif.

In any case, it think it is more efficient to do (maybe repeat after you did this some years ago):

zypper dup -- from packman

which will give you all from Packman that youn may need.

1 Like

It’s “libheif1” …

I am very sorry, it is.

In any case, the OP better uses e.g. YaST > Software > Software Management and then e.g. heif in the Search field when he wants to find pacakges in that area. Or

boven:~ # zypper se -si heif
Loading repository data...
Reading installed packages...

S  | Name     | Type    | Version              | Arch   | Repository
---+----------+---------+----------------------+--------+-----------
i+ | libheif1 | package | 1.16.2-150400.5.pm.2 | x86_64 | Packman

    Note: For an extended search including not yet activated remote resources please use 'zypper
    search-packages'.
boven:~ # 
1 Like

Its worked, in packman repo I found and instaled libheif1. Now ImageMagick is working with my heic images. Thank you very much.

But did you (now or earlier) do the Vendor switch? Else maybe the next problem with multi-media is just waiting around the corner.

I don’t remember but probably I done vendor switch in past. Now I also do as you write zypper dup --from packman after installing libheif1. For now everything’s ok.

I also think you are fine now.
Thanks for confirming.

Blockquote

sudo zypper se -si heif
[sudo] password for root:
Loading repository data…
Reading installed packages…

S | Name | Type | Version | Arch | Repository
—±--------------------------±--------±----------------------------------------±-------±------------------
i+ | gdk-pixbuf-loader-libheif | package | 1.17.5-150500.6.pm.1 | x86_64 | Packman_Repository
i+ | gimp-plugin-heif | package | 1.1.0+git20191012.d6bea52-150500.2.pm.5 | x86_64 | Packman_Repository
i+ | libheif1 | package | 1.17.5-150500.6.pm.1 | x86_64 | Packman_Repository
i+ | libheif1-debuginfo | package | 1.17.5-150500.6.pm.1 | x86_64 | Packman_Repository

Blockquote

still gimp will not display an error “Unknown File Type”.
This is on Leap15.5. any tips are appreciated.
thank you

@dmera Hi, your packman packages are not up to date, there was a library split, so should see a longer list;
https://pmbs.links2linux.de/package/binaries/Essentials/libheif/openSUSE_Leap_15.5

thanks malcolmlewis,
since i’m not able to access the link provided i’m not sure what are my options in this case. would appreciate if you can explain.
thanks

@dmera

@dmera oh, and you don’t need gimp-plugin-heif installed any more, this is part of gimp since 2.10.2, Leap 15.5 has 2.10.30, wonder if that may be causing the problem…

i installed all the ones missing, and it works. didn’t remove yet the one you suggest. really appreciate your help. I wish you A Happy New Year! Lots of health and love!

1 Like

Without gimp-plugin-heif package GIMP doesn’t see heif files.

@Svyatko that should not be the case anymore, see not on the developer page https://github.com/strukturag/heif-gimp-plugin Also note I’m the original packager/maintainer… https://pmbs.links2linux.de/package/view_file/Essentials/heif-gimp-plugin/heif-gimp-plugin.changes?expand=1

1 Like

Yeah! I won’t forget this. it started when I ask in this forum for heif help.
Then you package it and I did tried it and worked and I had a lot of fun using it. Lots of love for you malcolm for
doing great help.

@malcolmlewis:

 > cat /etc/SUSE-brand
openSUSE
VERSION = 15.5
 > 
 > grep -E 'NAME=|VERSION=' /etc/os-release 
NAME="openSUSE Leap"
VERSION="15.5"
PRETTY_NAME="openSUSE Leap 15.5"
CPE_NAME="cpe:/o:opensuse:leap:15.5"
 > 
 > gimp --version
GNU Image Manipulation Program Version 2.10.30
 > 
 > zypper search gimp-plugin-heif
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...

S  | Name                       | Summary                                        | Type
---+----------------------------+------------------------------------------------+------
i+ | gimp-plugin-heif           | Plugin for GIMP to load HEIF files             | Paket
   | gimp-plugin-heif-debuginfo | Debug information for package gimp-plugin-heif | Paket
 > 
 > find /usr/lib64/gimp/2.0/plug-ins/ -iname '*heif*'
/usr/lib64/gimp/2.0/plug-ins/heif-gimp-plugin
 >
 > rpm --query --whatprovides /usr/lib64/gimp/2.0/plug-ins/heif-gimp-plugin
gimp-plugin-heif-1.1.0+git20191012.d6bea52-150500.2.pm.5.x86_64
 > 
 > rpm --query --suggests gimp
AdobeICCProfiles
gimp-2.0-scanner-plugin
 > 
 > rpm --query --recommends gimp
gimp-lang
iso-codes
 > 

??? It seems that, currently Leap 15.5 doesn’t automatically pull in the GIMP HEIF plug-in …

  • Or, have I missed something?