SoftCreatR / imei

IMEI - ImageMagick Easy Install
ISC License
309 stars 36 forks source link

HEIC to JPG conversion fails with Error while loading plugin: No decoding plugin installed for this compression format #119

Closed mig5 closed 3 months ago

mig5 commented 3 months ago

Hi,

I am struggling to convert a HEIC file to JPG using your tool

$ magick IMG_5348.HEIC IMG_5348.jpg
magick: Error while loading plugin: No decoding plugin installed for this compression format (11.6003) `IMG_5348.HEIC' @ error/heic.c/IsHEIFSuccess/141

Do you have any idea?

I found https://github.com/strukturag/libheif/issues/1250 which suggests to not compile as separate plugins. I tried that but it still didn't help.

I am calling the script like so, on an Ubuntu 20.04 64-bit machine:

./imei.sh --skip-jxl --force --libheif-version=1.17.6

Attaching log file too imei-1724201043.log

SoftCreatR commented 3 months ago

See https://github.com/SoftCreatR/imei/issues/117

mig5 commented 3 months ago

Yeah, I did see that, and that's why I'm calling --libheif-version=1.17.6.

I think the version 1.17.6 cmake preset for 'release' does not include the jpeg decoder/encoder plugins, perhaps. Still looking into it.

mig5 commented 3 months ago

OK, so yeah, my problem is the reverse: installing with the latest libheif version 1.18.2 is perfectly fine.

Version: ImageMagick 7.1.1-36 Q16-HDRI x86_64 58ddb87ca:20240726 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(4.5) 
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib gvc heic jbig jng jp2 jpeg jxl lcms lqr ltdl lzma openexr pangocairo png ps raqm raw rsvg tiff webp wmf x xml zip zlib zstd
Compiler: gcc (9.4)

I don't need AVIF, so I presumably don't need to downgrade to that 1.17.6 at all, and in fact, that version does not work for me to convert HEIC to JPG.

Closing this out.