x-ray icon indicating copy to clipboard operation
x-ray copied to clipboard

169 fix failing redactions

Open flooie opened this issue 1 year ago • 2 comments

Cross Hatch [XXXX] style redactions always fail because we require redactions to be one solid color.

This PR replaces that check with a more nuanced check of a block. It uses adaptive thresholding to determine if a pixel is white or black and then determines if the redaction is a solid color.

Additionally, updates the readme around testing and adds a test for our Cross Hatch example

flooie avatar Apr 09 '25 19:04 flooie

Looks like you forgot to include the PDF? Not sure how tests passed that way or what's up with the lint. 🤔

mlissner avatar Apr 09 '25 20:04 mlissner

@mlissner thanks for the feedback ... I updated it.

flooie avatar Apr 10 '25 12:04 flooie