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 #96
Comments
I have the same issue:
I need to be able to work with large images. How can I increase the buffer limits..? |
I just encountered it, too. I can give you an example image, if needed. In my case the image is 2362x2362 pixels, so not too big really, and can be read just fine by any image editor I have. |
Is there any decision for this problem? |
Luckily, I found an easy workaround for that problem. Instead of putting the file path to the function, put buffer with already loaded file. For instance:
Btw, the problem is that I think the author is aware of that but didn't have sufficient resources to implement adaptive version 😉 - https://github.com/image-size/image-size/blob/master/lib/index.js#L10 |
I get this error when the jpg-image uses CMYK color model. |
Is this the same as #34? |
Maybe that's because the JPG is too big, but I would like to know how to avoid.
http://pan.baidu.com/s/1geSFOFT
The text was updated successfully, but these errors were encountered: