Someone somewhere at DB has written a QR code generator that outputs QR codes as HTML tables. I'm not sure if I should be impressed or horrified.
@cato tbh, it's probably the most backwards compatible across all devices
@darkrat @cato what about a simple png tho 😭

- posted by Ori
@ori @darkrat @cato png`s are often not so liked by embedded devices web browsers. Like these in cars (before android auto/apple something), handhelds, etc
Ok i dont know why one would like to show DB QR code in a car, but on PS Vita? some old Kindle? why not

@wikiyu @ori @cato It's also about scaling.

pngs can theoretically be scaled lossless due to the sharp corners, but only if you scale linerarly. Which some devices don't do per default (because it looks bad in most cases).
And if you scale with a non-linear algo, you can get weird results:

And sending a larger png is just wasted bandwidth

@darkrat looks not so pretty, but still readable

@wikiyu @ori @cato

@darkrat now I need to write QR to <table> converter to test how much bandwidth you can actually save

50px PNG QR with no border is less than 500 bytes already

@wikiyu @ori @cato

@darkrat @wikiyu @ori @cato an upscaled png compresses quite well (RLE)

@darkrat

The QR code scanner app on my phone can read that just fine. 7% error correction level: not perfect, but not bad.

(And of course it's a rickroll. 😂)

@wikiyu @ori @cato

@argv_minus_one sure. but it does not look nice and user might complain about a weird looking qr code.

and yes, I already had users open support tickets for exactly that

@darkrat

People complain about QR codes looking weird?! QR codes are for computers, not humans!