You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's an upstream issue with openjpeg not encoding 1-bit images correctly if they're over a certain size. Which I missed in testing because I set the upper limit on the random arrays incorrectly (range is [0, high), not [0, high]...)
Workaround is to use a precision of 2 instead.
The text was updated successfully, but these errors were encountered:
After a bit more exploring I think that this should be OK for most normal 1-bit images, it's using purely random images that's one of the causes of the issue.
scaramallion
changed the title
Encoding 1-bit images fails
Encoding random 1-bit images fails
Mar 23, 2024
There's an upstream issue with openjpeg not encoding 1-bit images correctly if they're over a certain size. Which I missed in testing because I set the upper limit on the random arrays incorrectly (range is [0, high), not [0, high]...)
Workaround is to use a precision of 2 instead.
The text was updated successfully, but these errors were encountered: