Unable to load JPG images due to "Unsupported JPEG process: SOF type 0xcb"
See original GitHub issueBefore starting the bug report - you also save my day 😃
For a few images I get the error message
Unsupported JPEG process: SOF type 0xcb
[ERROR] [2014.03.26 09:53:49] Loading the image failed : /iad/styria/prod/htdocs/uploads/20140301_123857_2363439246058001517.jpg [Environment: Host: "www.willhaben.at" Action: "swfuploadimage" Action Class name: "null" Sequence #: "135192664" Referer: "null" URL: "/swfuploadimage" RemoteIP: "212.152.181.235" User-Agent: "Shockwave Flash" jsessionid=3AD5B5AC
CAC4F054C1F1EEA4FE891D51&email=eidi@live.at] at no.finntech.base.modules.scale.ScaleJavaOnly.createImageFromImageFile(ScaleJavaOnly.java:282)
javax.imageio.IIOException: Unsupported JPEG process: SOF type 0xcb
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImage(Native Method)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1231)
at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:1034)
at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Source)
at javax.imageio.ImageIO.read(ImageIO.java:1448)
at javax.imageio.ImageIO.read(ImageIO.java:1308)
Not an expert but
- it might stem from an unsupported compression type “Lossless (sequential arith)”
- it might not stem at all from your library
I attached the offending image
Cheers,
Siegfried Goeschl
Issue Analytics
- State:
- Created 9 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Decode Error on JPEG images - IrfanView Support Forum
Unsupported JPEG process /compression: SOF type 0xcb. Unsupported JPEG process/compression: SOF type 0xc3. Invalid JPEG file structure: SOS ...
Read more >Java ImageIO IIOException: Unsupported image type?
Try to check the encoding of the JPEG. ImageIO can't read CMYK-encoded jpeg images for example. AFAIK, ImageIO hasn't been updated for years ......
Read more >Fix Unable to Open JPEG Image - Unsupported File on ...
Learn how you can fix unable to open JPEG image on Android phone with error unsupported file message.FOLLOW US ON TWITTER: ...
Read more >Can't Open JPG Files on Windows 10/11? Solved!
JPG Image Files Are Corrupted. One of the first and most common types of issues that people face while handling JPEG files is...
Read more >Best 9 ways to fix 'Unable to Open JPEG file' error
Are you unable to open JPG photos in Photoshop or cannot view JPEG files in Windows 10? Here the ways to fix 'Unable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see this old issue is still open. Just going to mention that with the code from this issue: https://github.com/haraldk/TwelveMonkeys/issues/197
The exception is logged and the image is processed properly.
Sounds like a good idea. Though I’m not super familiar with the code and the internals of image processing. I’m going to assume this is good for all formats, save perhaps SVG or others that more heavily rely on “extra syntax” if that makes sense?