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.

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

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gchudnovcommented, Oct 1, 2020

preliminary fix is here: https://github.com/gchudnov/inkjet/pull/7 released as 3.0.0-rc0.

if used in node.js: require('inkjet').default should be used. will revert back to require('inkjet') in rc1.

0reactions
gchudnovcommented, Sep 26, 2020

today started upgrading all underlying libraries, but might take some time…

Read more comments on GitHub >

github_iconTop Results From Across the Web

sRGB vs. sRGB IEC61966-2.1 - Apple Support Communities
The difference between sRGB and sRGB IEC61966-2.1 is still a mystery. In fact the whole subject of color - color space, color management,...
Read more >
Re: Mismatch between IEC61966-2.1 color profiles o...
The document profile such as Adobe RGB 1998 or sRGB IEC61966-2.1 describe what actual colours the colour values in the document represent.
Read more >
Crash on color profile change, plus bad monitor profile
Removing the profile from my monitor fixed it for Photo Viewer, but only setting the monitor's default profile to sRGB IEC61966-2.1 fixed it ......
Read more >
java - sRGB IEC61966-2.1 ColorModel for Raster image
Here's a "short" sample code that shows how to "force" the JPEGImageWriter to output an ICC profile segment in the output JPEG file, ......
Read more >
Help and tutorials ADOBE ® AFTER EFFECTS Contents
Color management for CinemaDNG includes the same color spaces as After Effects existing CameraRAW: Adobe RGB, sRGB IEC619662.1, ColorMatch RGB, and ProPhoto ...
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