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.

"javax.imageio.IIOException: No SOF segment in stream" when using JPEG compression in a TIFF v2

See original GitHub issue

I still got somewhat the same error as in https://github.com/haraldk/TwelveMonkeys/issues/433 and the provided test image (https://github.com/haraldk/TwelveMonkeys/files/2259496/test.zip).

Caused by: javax.imageio.IIOException: No SOF segment in stream
	at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.getSOF(JPEGImageReader.java:888)
	at com.twelvemonkeys.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:338)
	at com.github.jaiimageio.impl.plugins.tiff.TIFFOldJPEGDecompressor.decodeRaw(TIFFOldJPEGDecompressor.java:651)
	at com.github.jaiimageio.plugins.tiff.TIFFDecompressor.decode(TIFFDecompressor.java:2583)
	at com.github.jaiimageio.impl.plugins.tiff.TIFFImageReader.decodeTile(TIFFImageReader.java:1144)
	at com.github.jaiimageio.impl.plugins.tiff.TIFFImageReader.read(TIFFImageReader.java:1414)
	at javax.imageio.ImageIO.read(ImageIO.java:1462)
	at javax.imageio.ImageIO.read(ImageIO.java:1357)

Environment: com.twelvemonkeys.imageio:imageio-jpeg:3.6.1 openjdk-8-jre-headless 8u272-b10-0ubuntu1~18.04 18.04.5 LTS

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fkluthecommented, Apr 12, 2021

Ah cool, thx for your effort. Will check it out in the next release 👍

0reactions
haraldkcommented, Mar 30, 2021

Fixed in latest master.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"javax.imageio.IIOException: No SOF segment in stream ...
imageio.IIOException: No SOF segment in stream" when using JPEG compression in a TIFF #433.
Read more >
"javax.imageio.IIOException: No SOF segment ... - Bountysource
"javax.imageio.IIOException: No SOF segment in stream" when using JPEG compression in a TIFF v2.
Read more >
Coldfusion 2018 No SOF segment Multi-Page TIFF Error
This was driving me nuts. I tried everything I could find short of installing extra JAVA libraries or routing it through other executables ......
Read more >
javax.imageio.IIOException java code examples - Tabnine
Best Java code snippets using javax.imageio.IIOException (Showing top 20 results out of 684) ... not read metadata for JPEG compressed TIFF (%s).
Read more >
java/11 : java.desktop/com/sun/imageio/plugins/tiff ...
Base class for all possible forms of JPEG compression in TIFF. */ public abstract class TIFFBaseJPEGCompressor extends TIFFCompressor { // Stream metadata ...
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