question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to load JPG images due to "Unsupported JPEG process: SOF type 0xcb"

See original GitHub issue

Before 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

test-image-broken-01

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
KoenDGcommented, Jan 28, 2020

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.

0reactions
KoenDGcommented, Jan 29, 2020

@KoenDG Thanks for looking into this and taking the time to test! 😀

Perhaps we should add the code from #197 to the documentation on the home page?

Best regards,

– Harald K

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found