aboutsummaryrefslogblamecommitdiff
path: root/graphics/p5-Image-PNG-QRCode/pkg-descr
blob: f01134e5bfede1121550fa64fb81bd47e80174d5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                          
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";