• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

ImageMagick can't process certain GIF images

mkerala

👽 Chevereto Freak
One of my users reported that he is unable to upload a GIF he created. He was able to upload the same image on a older Chevereto install which was not updated to use
ImageMagick.

Tested on demo and confirmed bug.

▶ Reproduction steps
  1. Download image from https://gifyu.com/image/rSVH
  2. Try uploading it to any new Chevereto install with ImageMagick.
😢 Unexpected result

Upload fails after 100%.

📃 Error log message

No image have been uploaded
Some errors have occurred and the system couldn't process your request.
  • Uwe_Comic1.gif - Server error (Internal server error)
Can't attach original image here as it is 12MB. Can be downloaded from https://gifyu.com/image/rSVH
 

Attachments

  • 1.jpg
    1.jpg
    43.9 KB · Views: 7
  • 2.jpg
    2.jpg
    25.8 KB · Views: 7
You need to actually tweak ImageMagick to work for your needs. Is not that the defaults will be fine for all use cases, they have policy files for limitations.

My dev version narrowed to this right away:
Code:
>> Intervention\Image\Exception\NotReadableException [400]: memory allocation failed `/var/www/html/images/2021/04/10/Uwe_Comic1.gif' @ error/gif.c/ReadGIFImage/1303
At /app/vendor/intervention/image/src/Intervention/Image/Imagick/Decoder.php:25
 
I tried updating Memory in /etc/ImageMagick-6/policy.xml to 1024MB and map to 1600MB. Still same error.

I have uninstalled ImageMagick-6 for the time being so Chevereto defaults back to GD and image upload fine.
 
Works on my website.

Comment out memory limit from policy.xml altogether, or grant at least 4GB of memory.
 
Last edited:
Also, the server used about 4GB RAM to process a 12MB image.

I have switched back to GD. Seems to be light on resource and much faster.
 
Also, the server used about 4GB RAM to process a 12MB image.

I have switched back to GD. Seems to be light on resource and much faster.
ImageMagick has better processed image quality than GD though. I don't know if it is actually true, but GD's image looks less sharp to me compared to Imagemagick.
 
ImageMagick has better processed image quality than GD though. I don't know if it is actually true, but GD's image looks less sharp to me compared to Imagemagick.
Does GD process the image? I thought it was only for thumbnail generation rest the original file only.

ImageMagick has significant delay when processing GIF and high memory usage.
 
Does GD process the image? I thought it was only for thumbnail generation rest the original file only.

ImageMagick has significant delay when processing GIF and high memory usage.
I was talking in general. Imagemagick has better options, quality and better performance than GD.
Not sure if chevereto does convertions, I guess not. As far as I am aware, it only process images when EXIF data is stripped, or for thumb or md images. I might be wrong.
 
Back
Top