Giter VIP home page Giter VIP logo

prettyqr's Introduction

PrettyQR

Generate QR codes that look prettier than the default, with round corners and colours. Optionally embed a logo (we use the highest QR error redundancy, 30% so provided the logo isn't too large, the QR code is parsed fine by most readers)

uses qrencode (and its dependencies) to generate the raw QR data.

outputs svg files for best quality

Usage

prettyqr.py --options "Some text or url"

Adding logos

For best results, two versions of your logo should be provided. First generate a QR code without any logo. Open the output in e.g. inkscape, remove the contents and save a new file with the same dimensions, and your logo in the desired location. In addition, export a raster version of your logo template at 90 dpi, which may be used to clear the QR data from underneath the logo.

Good results for data in the order of short urls has been achieved with logos slightly larger than the (large) corner marking squares.

Note that there is a probability that this makes the QR code unusable. 30% redundancy is built in and it's worked in all (reasonable) examples I've tried. Always test to make sure the final QR code works.

Requirements

qrencode
libqrencode
PIL
Python >= 2.6 (for now)

prettyqr's People

Contributors

davidszotten avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.