Filter by tag:
Cloudflare Workers
QR Code Compression Worker
Cloudflare worker, that converts a requested text into QR Code data array, with API for packing 3x3 modules as 9-bit numbers for low-end devices that expect a packing to reduce their CPU usage:
1 +-----+-----+-----+-----+ +-----+-----+-----+-----+ 2 |0 0 0|1 1 0|1 0 1|0 0 1| | | | | | 3 |1 1 0|1 0 1|1 0 1|0 1 1| | 24 | 235 | 365 | 308 | 4 |0 0 0|1 1 0|1 0 1|0 0 1| | | | | | 5 +-----+-----+-----+-----+ -> +-----+-----+-----+-----+ 6 |0 0 0|1 0 0|1 1 1|0 0 1| | | | | | 7 |0 0 0|1 0 1|1 1 1|0 0 1| | 0 | 233 | 511 | 292 | 8 |0 0 0|1 1 0|1 1 1|0 0 1| | | | | | 9 +-----+-----+-----+-----+ +-----+-----+-----+-----+
Bits being layed out this way:
1 +------------+ 2 |1 2 4 | 1<<0 1<<1 1<<2 3 |8 16 32 | 1<<3 1<<4 1<<5 4 |64 128 256 | 1<<6 1<<7 1<<8 5 +------------+
av
Anton VeretennikovPersonal Landing Page