thephpleague / glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.
http://glide.thephpleague.com
MIT License
2.54k stars 198 forks source link

ImagickException: NoDecodeDelegateForThisImageFormat `PNG' #366

Closed rassloff closed 6 months ago

rassloff commented 1 year ago

my version:

convert -version Version: ImageMagick 7.1.1-4 Q16-HDRI aarch64 20976 https://imagemagick.org Copyright: (C) 1999 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Cipher DPC HDRI Modules OpenMP(5.0) Delegates (built-in): bzlib fontconfig freetype gslib heic jng jp2 jpeg jxl lcms lqr ltdl lzma openexr png ps raw tiff webp xml zlib Compiler: gcc (4.2)

with PHP 8.2.4 (cli)

on MAC OS

error massage:

ImagickException: NoDecodeDelegateForThisImageFormat `PNG' @ error/constitute.c/ReadImage/746

my PHP code:

$image = new Imagick(); try { $image->pingImage($file); } catch (ImagickException $e) { Log::debug('Fehler Zeile 45 ' . $e); abort(422, 'Could not read file as image.'); }

any solution on this ???

ADmad commented 6 months ago

Sorry can't help you. Your issue is not directly related to Glide.