Although quick-response (QR) codes are rather simple monochrome affairs, adding embellishments to them is a popular activity, if only to make QR codes not stick out like a sore thumb in e.g. flashy marketing flyers. The most simple approach here is to put any regular graphic in e.g. the center of said QR code and lean on the scanner’s error-correcting features to route around the damage, but a more sophisticated approach uses halftone images that are blended with the QR code, as first demonstrated in 2013 by [Hung-Kuo Chu] et al.
A number of online halftone image QR generators exist that use the methodology in said 2013 paper to allow you to generate any mesh-up you like. Here [Jorge C. Lucero] provides a JavaScript-based version written from scratch that can run client-side. According to [Jorge] this was a weekend’s project created out of sheer curiosity.
The basic way that this algorithm works is by using each of the data modules of the QR code as a 3×3 grid of submodules, using only the center sub-module as the module’s color. The other sub-modules are thus free to be assigned a halftone color grade that creates the final module’s appearance.
Although this should generally work without leaning on the scanner’s error-correction features, an ‘enhancement’ mode is possible that enhances the image clarity at the cost of introducing some scanning errors that will require correction. Overall it provides a pretty clear improvement over simple binary image embedding, especially when higher resolution QR codes are used.

So the camera needs to be closer or better for this to work!?
We went through a few iterations of this in the 1980s and 1990s at Xerox PARC. Here is an early one: https://www.tauzero.com/Rob_Tow/DataGlyph.html
I love this!
A nice stab at QR code art… Though not exactly original, Andrew Taylor (https://www.andrewt.net/dithered-qr-codes/wtf/) did similar stuff quite some time ago
Doesn’t this assume the QR scanner samples only the middle of each mark and potentially risk scanning errors?
Author here, thanks for the write-up.
On the sampling question: yes, that is exactly the mechanism. A decoder finds the symbol from the finder patterns, reconstructs the module grid, and samples a small neighbourhood at each module centre; it never averages the whole module. That is what leaves the rest of the module free. With the default 6×6 subdivision the centre 2×2 carries the bit and the other 89% of the area is picture, so error correction is not being spent on the halftoning. Every code the tool makes is checked by sampling at the module centres, and the matrix comes back exactly.
On camera quality: it depends on the size of the symbol rather than on the technique. A short URL gives a version 4 or 5 code with large modules, and that scans about as easily as a plain QR code. A photograph needs a finer picture, so the tool moves it to version 12 (65×65 modules); there the modules are small enough that you want a reasonable screen size or print, and a steadier hand. Line art has enough contrast to stay small.
No claim of novelty, by the way. The method is Chu, Chang, Lee & Mitra (SIGGRAPH Asia 2013); I came to it through Erik and Martin Demaine’s QR prints, which use the 6×6 grid. Andrew Taylor’s dithered codes are earlier still. What I added is a browser implementation with the QR encoder written from scratch, so no image is uploaded anywhere.