-
-
Save l3dlp/0e263d62ff139bff87c534af2c8ae2e3 to your computer and use it in GitHub Desktop.
VCARD to QRcode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| # | |
| use GD::Barcode::QRcode; | |
| open(X, ">./out.png"); | |
| binmode(X); | |
| my $vcard = " | |
| BEGIN:VCARD | |
| N:Lastname;Firstname | |
| EMAIL:Firstname.Lastname\@example.com | |
| END:VCARD | |
| "; | |
| print X GD::Barcode::QRcode->new($vcard, { Ecc => 'Q', Version=>7, ModuleSize => 2})->plot->png; | |
| close(X); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment