jbig2dec doesn't handle the ubc testsuite file 042_25 "Symbol Region, inverted". The program runs without error: $ ./jbig2dec ../ubc/042_25.jb2 [no terminal output] but the resulting image has black and white inverted. The library should be updated to handle this case.
Created attachment 9242 [details] Patch to handle inverted symbol region The error was due to the combination operator not being propagated and also because the XNOR operator was incorrectly coded. The attached patch corrects both problems.
Thank you for contributing to Ghostscript. Your patch has been adopted and committed as a rev. 07d5a619b525898759a7468631a6cb775edf5bd6 .
(In reply to comment #2) > Thank you for contributing to Ghostscript. Your patch has been adopted and > committed as a rev. 07d5a619b525898759a7468631a6cb775edf5bd6 . Please collect the bounty. Thanks.