MCPcopy Index your code
hub / github.com/divan/qrlogo

github.com/divan/qrlogo @1.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.2 ↗ · + Follow
7 symbols 16 edges 2 files 5 documented · 71%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

QRLogo

go.dev reference

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

Core symbols most depended-on inside this repo

errcheck
called by 4
cmd/qrlogo/main.go
Encode
called by 1
qrlogo.go
Encode
called by 1
qrlogo.go
overlayLogo
called by 1
qrlogo.go
main
called by 0
cmd/qrlogo/main.go
Usage
called by 0
cmd/qrlogo/main.go

Shape

Function 4
Method 2
Struct 1

Languages

Go100%

Modules by API surface

qrlogo.go4 symbols
cmd/qrlogo/main.go3 symbols

For agents

$ claude mcp add qrlogo \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page