graphics/p5-Image-PNG-QRCode 0.10 DragonFly
Make a PNG image containing a QR code from text
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- GPLv3
- Categories
- graphics, perl5
- Package size
- 35.0 KiB, 83.3 KiB installed
Description
This module converts input text to a PNG image of a QR code containing the text. The PNG image can either be stored to a file or it can be a scalar.
Image::PNG::Libpng requires "libpng" to be installed. "libpng" should already be installed on most Linux and Windows systems.
This example makes a data URL QR code:
use Image::PNG::QRCode 'qrpng'; use URI; my $data = 'abcdefghijklmnopqrstuvwxyz'; my $u = URI->new ('data:'); $u->media_type ('image/png'); $u->data (qrpng (text => $data)); print "<img src='$u'>\n";
Install
Binary package:
pkg install p5-Image-PNG-QRCode
From DPorts:
cd /usr/dports/graphics/p5-Image-PNG-QRCode && make install clean
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
Run dependencies 2
No port depends on this one.