Hacker News new | ask | show | jobs
by _qbjt 1845 days ago
Wow, I just checked and you're right. I find it fascinating that all of this modern software continues to support JPEG 2000 in such a buggy state. Or maybe it's the file itself that's corrupted? I don't know enough about the file format to say.
1 comments

the file is obviously wrong
The file is correct. You can open it in imagemagick (display) to check. Could be a simple problem with the colorspace implementation of gimp or something similar. If you would read the comments you would know what a mess jpeg2000 implementations are
Something appears to be wonky with the ICC profile embedded in this image. And while I have no idea whether the file itself complies with applicable standards, I can say that ImageMagick is not a reliable test in this case. To wit:

1. Per Photoshop, "The embedded ICC profile cannot be used because the ICC profile is invalid."

2. After using the OS X Preview.app "Assign Profile" command to replace the embedded ICC profile with the system-supplied sRGB profile, the image displays correctly in Safari.

3. The ImageMagick display command is apparently ignoring the embedded profile and assuming sRGB, as it continues to display the image correctly even when I replace the embedded profile with an obviously incorrect (but valid and correctly interpreted by Photoshop and Safari) profile.