Imagick trouble in CMSB 3.70
4 posts by 2 authors in: Forums > CMS Builder
Last Post: August 15, 2024 (RSS)
By pgplast - August 13, 2024
I have an install of CMSB 3.70 and it seems that uploading of images works fine for webP, png etc, but fails for jpegs.
One get the error within the cmsb backend
ted error occurred: #2533)
[DISPLAYED FOR ADMIN LOGINS ONLY] Error: no decode delegate for this image format `JPEG' @ error/constitute.c/ReadImage/581
and the logs show
#2533 - no decode delegate for this image format `JPEG' @ error/constitute.c/ReadImage/581
/chroot/home/example.com/html/cmsCSoft/lib/image_functions.php on line 181
Line 181 in the images_functions.php file is a call to create a new instance of Imagick. I am guessing that Imagick has no code for dealing with jpg format?
I'm sure it has been able to in the past. Is this something in CMSB or a setting that needs changing by the host on the server?
Thanks.
By Dave - August 13, 2024
Hi pgplast,
That seems like a known server issue with certain installs of ImageMagick:
https://www.google.com/search?q=ImageMagick:%20No%20decode%20delegate%20for%20this%20image%20format%20error/constitute.c/ReadImage
You could try asking the host to fix it and re-install IM or commenting out that IM specific code in CMSB and it should fallback to using GD. ImageMagick isn't available on all servers so CMSB has GD fallback code for all the IM operations.
Hope that helps!
interactivetools.com
By pgplast - August 15, 2024
I was able to get the host to update Imagick 6 to 7 and this solved the issue.
Thanks, Dave!
By Dave - August 15, 2024
Ok, great. Glad it's working now and thanks for letting us know what the fix was.
interactivetools.com