Skip to content

image/jpeg: mishandles progressive JPEG #6767

Closed
@gopherbot

Description

@gopherbot

by dan.pupius:

To reproduce:
- decode the attached image

What is the expected output?

A decoded image.  Works in every other image viewer I tried.  (Preview, Chrome,
GraphicsMagick)

What do you see instead?

invalid JPEG format: missing 0xff00 sequence
see: http://golang.org/src/pkg/image/jpeg/huffman.go

Which version are you using?  (run 'go version')

go version devel +37afbf6361e2 Tue Nov 12 10:03:13 2013 -0800 darwin/amd64
Which version are you using?  (run 'go version')


I realize this is an expected error, but given that other viewers manage to decode the
image correctly I wonder if this is truly an error case or can be gracefully handled. 
(Pardon my ignorance of the jpeg spec)

Attachments:

  1. 0*CZbFf74phRAk3ngZ.jpeg (615890 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions