Marti2203 opened a new pull request, #574:
URL: https://github.com/apache/commons-imaging/pull/574

   Fixes [IMAGING-392](https://issues.apache.org/jira/browse/IMAGING-392).
   
   `PbmFileInfo.getRgb(WhiteSpaceReader)` (plain P1 PBM) returned black for 0 
and white for 1, the opposite of `getRgb(InputStream)` (raw P4) and of the 
format, where 1 is black. Plain PBM images, including ones written by 
`PbmWriter`, therefore decoded as their negative. This swaps the two colors.
   
   `PbmFileInfoTest.testPlainAndRawPolarity` decodes the same two pixels as P1 
and P4; it fails without the change. The full test suite and `mvn -B 
-DskipTests -DskipITs` pass.
   
   This issue was found by an LLM-Enhanced Static Analysis Engine and verified 
manually. The patch and this description were prepared with AI assistance 
(Claude Code) and reviewed by me; the commit carries an `Assisted-By:` trailer.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to