• Self Denial's avatar
    Introduce canvasPixelTest() intended to validate canvas functionality · ac9308db
    Self Denial authored
    Browsers and plugins that spoof canvas data produce corrupt images. In attempt to mitigate:
    
    * Add canvasPixelTest() to test a single pixel and test the RGB values
    * Test canvasPixelTest() inside generateInitialsImage() and use default `/user.png` if failure detected
    * Call canvasPixelTest() directly within settings to avoid setting an invalid image
    * Use toast.error() with 10 second autoClose
    ac9308db
index.ts 11.1 KB