-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Expose underlying error message when attempting to read metadata from "corrupt" file #1505
Comments
Hello, not sure I quite understand this question but did you see metadata? This includes an |
@lovell On site like get-metadata dot com, I can have a field called Encoding Process which on my JPEG images is Encoding Process: Lossless, Huffman coding or in some others ones Encoding Process: Baseline DCT, Huffman coding. So my question is can I get this kind of data using sharp? I tried to use the |
Thanks for clarifying. Lossless JPEG images are unlikely to work as the underlying libjpeg(-turbo) does not support them. Beyond that, I think the only two "encoding processes" are "baseline" (where |
@lovell I understand that it cannot decode JPEG Lossless, but I thought it could at least read the metadata since it's still official JPEG format. Even when I use |
Are you able to provide a sample lossless JPEG file? If so, I might be able to take a closer look at how libvips could be updated to expose this. |
@lovell I'll try to provide one ASAP, thanks for looking into this |
@lovell How can I contact you and send you privately one image? |
I found a public I can see the "Unsupported JPEG process: SOF type 0xc3" error message is being passed back from libvips but is swallowed by sharp. |
v0.21.2 now available that exposes the underlying error message, if any. |
Is it possible to get a JPG image's process ? (SOF type etc...)
The text was updated successfully, but these errors were encountered: