[ 
https://issues.apache.org/jira/browse/IMAGING-134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16859097#comment-16859097
 ] 

Bruno P. Kinoshita commented on IMAGING-134:
--------------------------------------------

I got some description of reset/restart markers from other projects issues 
(Golang has an open issue similar to this one I think), and some useful 
information from StackOverflow answers. It looks like some useful information 
is hidden away in paid versions of ISO documents (may have access through work 
research subscriptions).

But my understanding of this change was that we are adding the support for the 
reset markers, and some extra logic in the code handling the segments with the 
RST markers. It looks to me as if instead of going through a single input 
stream with the whole segment data, we split it by the RST markers (based on 
the length of the markers) into multiple blocks, and then process each block 
with MCU's (minimum coded units, or tiles).

> Invalid marker found in entropy data
> ------------------------------------
>
>                 Key: IMAGING-134
>                 URL: https://issues.apache.org/jira/browse/IMAGING-134
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: JPEG
>    Affects Versions: 1.0-alpha1
>            Reporter: John Hewson
>            Assignee: Bruno P. Kinoshita
>            Priority: Major
>             Fix For: Patch Needed
>
>         Attachments: image.jpeg
>
>          Time Spent: 2h 10m
>  Remaining Estimate: 0h
>
> I'm getting the following exception when trying to read a JPEG:
> Exception in thread "main" org.apache.commons.imaging.ImageReadException: 
> Invalid marker found in entropy data
>       at 
> org.apache.commons.imaging.formats.jpeg.decoder.JpegInputStream.nextBit(JpegInputStream.java:50)
>       at 
> org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder.decode(JpegDecoder.java:426)
>       at 
> org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder.readMCU(JpegDecoder.java:320)
>       at 
> org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder.visitSOS(JpegDecoder.java:124)
>       at 
> org.apache.commons.imaging.formats.jpeg.JpegUtils.traverseJFIF(JpegUtils.java:80)
>       at 
> org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder.decode(JpegDecoder.java:436)
>       at 
> org.apache.commons.imaging.formats.jpeg.JpegImageParser.getBufferedImage(JpegImageParser.java:98)
>       at 
> org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1378)
>       at 
> org.apache.commons.imaging.Imaging.getBufferedImage(Imaging.java:1341)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to