New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotReadableException in Decoder.php line 46: #669
Comments
Please provide a link to a not working image. |
Same here - any image I have on my phone.. |
are you correctly encoding the post data? e.g., |
I also have the same problem Link to image: https://drive.google.com/file/d/0B8XyZGhUQfVsRVQ5MEZ2cmtZZVU/view?usp=sharing |
In my case, random image were were not working first thought it was memory issues but it wasn't, it worked after the following lines before reading image data with any intervention image function
|
JOHN-MAINA, thank you for the solution, actually after adding this configuration it works perfectly. Regards :) |
Hi @John-Maina Thank you for sharing your solution. I am stuck on the same problem and it is very odd. Like you pointed out, the Do you know why this line of code fixes the issue? It appears the line of code is related to error reporting, but why does that make the Its very odd, I have seen many posts on the same issue but with no concrete solution. Hope you can share a little bit more info on this please... |
@Mr-Anonymous |
Hi All, In case it's useful to anyone ... I've just seen the same exception on a Redhat Linux production server, which I wasn't seeing on our approval server (on the face of it, identical installations / configurations ...) When I enabled the Laravel debug-bar, I was able to see the underlying
I was also able to see on a
(It should be a non-zero number!) I think the cause was an automated upgrade of the imagick libraries ... The solution was to re-start the I hope this helps. Nick |
Please note that not all image formats are always included in the PHP image extensions. It is therefore possible, that the GD library is installed but is configured without Jpeg support or Imagick is available without Webp support for example. You can view the supported image formats with gd_info() or Imagick::queryFormats() It may then be necessary to configure the respective support for the corresponding image format. |
@olivervogel
I have image from my mobile phone, when I tried to upload in our web server using Laravel, it threw error
NotReadableException in Decoder.php line 46:
Unable to read image from file
this is my code
But when i open the image in the paint and save as . I can upload in the server, but I don't want my users to open in paint and do save as in order to upload their profile pic.
Thank you in advance.
The text was updated successfully, but these errors were encountered: