How the colour-matching removal works
The tool averages the colour in the four corners and makes every similar pixel transparent, keeping pixels that sit on a detected edge.
It reads a 20x20 pixel patch from each corner, averages them into one background colour, then visits every pixel. A pixel becomes transparent if its red, green and blue values are each within 30 of that colour and a simple neighbour comparison does not mark it as an edge. Everything else stays as it was. The result is saved as a PNG. The thresholds are fixed in the code (tolerance 30 per channel, 20x20 corner samples), so the same image always gives the same result and nothing can be tuned from the page.