This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { decode } from 'blurhash'; | |
// source of code below https://github.com/wheany/js-png-encoder/blob/master/generatepng.js | |
const DEFLATE_METHOD = String.fromCharCode(0x78, 0x01); | |
const CRC_TABLE: number[] = []; | |
const SIGNATURE = String.fromCharCode(137, 80, 78, 71, 13, 10, 26, 10); | |
const NO_FILTER = String.fromCharCode(0); | |
const makeCrcTable = () => { | |
let c; |