P5-image-png-qrcode

Jul 20, 2023

Make a PNG image containing a QR code from text

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.

ImagePNGLibpng 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 ImagePNGQRCode ‘qrpng’; use URI; my $data = ‘abcdefghijklmnopqrstuvwxyz’; my $u = URI->new ‘data’; $u->media_type ‘image/png’; $u->data qrpng text => $data; print “\n”;



Checkout these related ports:
  • Zphoto - Zooming photo album generator
  • Zint - Barcode generator (library and utilities)
  • Zimg - Image-generator that uses ASCII input files to create PNGs/EDFs
  • Zgv - Graphics viewer for SVGAlib
  • Zbar - ZBar barcode reader
  • Zathura - Customizable lightweight pdf viewer
  • Zathura-ps - PostScript support for Zathura PDF viewer
  • Zathura-pdf-poppler - Poppler render PDF plugin for Zathura PDF viewer
  • Zathura-pdf-mupdf - MuPDF render PDF plugin for Zathura PDF viewer
  • Zathura-djvu - DjVu support for zathura
  • Zathura-cb - Comic book plugin for Zathura PDF viewer
  • Yukon - Real-time capture tool for OpenGL applications
  • Yed - Editor for graphs and diagrams
  • Yafaray - Montecarlo raytracing engine
  • Yacreader - Yet another comic reader