• 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

Unable to read image from path error - imagemagick decoder bug

lovedigit

👽 Chevereto Freak
▶ Reproduction steps
  1. Upload an image larger than 17MB
  2. It will throw 500 internal server error
😢 Unexpected result

Any image bigger than 17MB with resolution large enough throw internal server error because of a bug in imagemagick decoder code of chevereto. I might be wrong.

383_ETG1vMmiLY.png

Why I say specifically 17MB?
Because I tested upload with an increment of 1MB images. even 16.8MB image was uploaded without error.
I could replicate it on demo as well.

385_s2OvjbYULN.png

Here are the sample images that you can test.
16.8mb image - This will be uploaded without error
17+mb image - This will throw error.

To be fair, I think it is related to resolution than actual image size. I am not sure.
It is weekday, so I couldn't check the codes. Even if I did I am sure I will be drowned in over information.

You can try your own images as well. Anything larger than 17MB with unusual resolution.

I tested it on stable release. All images I tested were successfully updated. So, this bug is present on beta.


📃 Error log message

Fatal error [0]: Unable to read image from path (/var/www/domain/tmp/Ie6pGr.jpg).
Triggered in /app/vendor/intervention/image/src/Intervention/Image/Imagick/Decoder.php:29

Stack trace:
#0 /app/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php(339): Intervention\Image\Imagick\Decoder->initFromPath()
#1 /app/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php(66): Intervention\Image\AbstractDecoder->init()
#2 /app/vendor/intervention/image/src/Intervention/Image/ImageManager.php(54): Intervention\Image\AbstractDriver->init()
#3 /app/vendor/intervention/image/src/Intervention/Image/ImageManagerStatic.php(58): Intervention\Image\ImageManager->make()
#4 /app/lib/classes/class.imageresize.php(41): Intervention\Image\ImageManagerStatic::make()
#5 /app/lib/classes/class.image.php(999): CHV\Imageresize->setSource()
#6 /app/lib/classes/class.image.php(690)" while reading response header from upstream, client: 103.253.150.140, server: domain.com, request: "POST /json HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm-domain.sock:", host: "domain.com", referrer: "https://domain.com/upload"
 
Last edited:
Back
Top