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
[TypeError: Corrupt JPG, exceeded buffer limits] #37
Comments
@ktiniatros the 2 problems with this code are
|
OK, got it now.. following your feedback, I fixed my code:
My goal was actually to get the image dimensions without download the whole image. It works now. IF you have any better suggestion for getting dimensions without having to download the whole file, you are more than welcome :) |
I encountered this error as well on a quite small jpeg that seemed perfectly fine. I tested out GraphicsMagick as recommended in this SO answer. It returned the size correctly without errors for the given file. |
FYI I had this error as well, but I found out it was because the images I was using were saved as CMYK file type instead of RGB. Once I changed the images to RGB the script worked. |
Have the same error, I think we should use |
We ran into the same problem with a CMYK JPG file. Having support for CMYK files would be great (or at least throw an error saying CMYK is not supported). |
I'm also getting the 'Corrupt JPG, exceeded buffer limits' error on CMYK JPG files. However, if the file is resized to be small enough(<150px) the error no longer appears. |
I'm also getting the 'Corrupt JPG, exceeded buffer limits' error and the file is saved as RGB type. It has been solved by changed the saved type of the image to decrease the size of the image. |
try https://github.com/nodeca/probe-image-size, it works with examples from this thread |
'image-size' has an unfixed bug with buffer: image-size/image-size#37
@kbradl16 This 100% was the case for me too |
me too |
i have the same issue, any solution? |
@Gatunox use https://github.com/nodeca/probe-image-size instead |
i have the same problem too, if jpg is CMYK mode(which first four bytes are ffd8 ffe1), then image-size won't get right size |
Is this the same as #34? |
Trying to calculate the following image throws an exception:
The text was updated successfully, but these errors were encountered: