Loading application... I use some pretty new (experimental?) stuff such as top-level awaits in modules, so if it doesn't load your browser might be too old...
Q&A
What's this?
A small tool that you can use to repackage your European COVID vaccination certificate.
You can change the QR error correction factor, which can reduce the size of the QR code.
Additionally, the packed data is recompressed using zopfli, typically yielding
better compression rates than typical zlib compression (while being backwards compatible with zlib).
tl;dr: You can make your qr-code smaller (less dense).
Where do I get this 'HC1:' data from? Where do I input my QR-Code?
Decode your certificate with any qr-code decoder and copy the data in the input form above.
I was too lazy to add code to import qr-code images (you can only check so many libraries for hidden backdoors).
Are you stealing my certificate with this?
No, everything happens inside the browser using JavaScript and WebAssembly (for zopfli).
But don't trust me, if you want to be sure disable internet while using the page
(or block all subsequent requests from this domain after loading the page in developer tools).
Why did you do this?
I wanted to stick my COVID certificate on my university card so that I didn't need to use my phone to enter the restaurant of the university.
However, the error correction on the default European certificate card is extremely high, which means that the individual pixels
are very small when printed to fit my card.
The Belgian CovidScan application doesn't like this, so I tried repacking the QR-code to see if I could change the error correction rate.
This proved to be successful, but I wanted to see if I could go further and reduce the size of the compressed zlib data.
I discovered zopfli and thus this application was born :)