dorkhub

qr-vanity

automatically embedding pixel art in QR-codes

mzollin
Python658 forksMITupdated 1 month ago
git clone https://github.com/mzollin/qr-vanity.gitmzollin/qr-vanity

qr-vanity

example logo Automatically embedding pixel art in QR-codes.
License: MIT Updates Python3

←example output

Setup and usage:

  • sudo apt install python3-dev python3-setuptools python3-pip libzbar0 libzbar-dev
  • pip3 install -r requirements.txt

usage: ./qrvanity.py input.png "encoded message"
output: one or multiple output.png
input format: pixel art as small black and white binary image (no grayscales)
advice:

  • Use transparent pixels where you don't care (outside the motive if it has non-rectangular borders). It will then occupy less data modules (QR-code pixels) and the resulting QR-code will be smaller.
  • Drawing a white border around black motives will improve visibility, because it keeps black data modules away.
  • The tool may often generate QR-codes that are not strictly valid according to specifications but can nevertheless be read by most QR-code readers.

Python dependencies

  • Pillow
  • PyQRCode
  • zbarlight
  • pypng

more like this

TachiSnap

TachiSnap — Pixel Snapper for animation pixel artists. Rust + WebAssembly client-side tool for cleaning up AI-generated…

HTML50

meine

meine 🌒 - A CLI file manager and system utility built with Textual. It combines intuitive command parsing with rich t…

Python50

search

search projects, people, and tags