Skip to content

Crashes when decoding JPGs w/ sRGB IEC61966-2.1 color profile #5

Description

@bvandenbos

At least the color profile seems to be the consistent factor. May also be true for other profiles. I can decode JPGs w/out a profile just fine.

Stack trace:

TypeError: Cannot read property '0' of undefined
    at quantizeAndInverse (jpg.js:448)
    at buildComponentData (jpg.js:586)
    at constructor.parse (jpg.js:820)
    at JpegImage.parse (jpg.js:68)

Example image:
3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions