Giter VIP home page Giter VIP logo

qrlogo's Introduction

QRLogo

GoDoc

Intro

QRLogo is a small library and command line to generate QR images with small logo placed in the center.

Thanks to redundancy in the QE codes nature, code remains readable even if part of its covered by image, i.e. logo. It allows to create nice branded-like QR codes.

Demo

Install

To install command line tool:

go get github.com/divan/qrlogo/cmd/qrlogo

Or only lib (basically, the same, but without installing binary):

go get github.com/divan/qrlogo

Usage

Command line tool

For command line tool, it's enough to specify input image (i.e. logo) and text or URL to be encoded:

qrlogo -i logo.png http://githib.com/divan/qrlogo

Output will be written to qr.png file in PNG format.

You can also specify output filename and image size (512px by default). See -help output for details.

Note, that resizing logo image is up to you, it will be placed on top of resulting QR code without resizing or guessing proportions.

Library

For the library, usually it's enough to call only qrlogo.Encode() function, but if you need more precise controls, create new qrlogo.Encoder and set the values you need. See Documentation for more details.

License

MIT

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.