Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I generate SVG qrcode with image?

Tags:

php

I have a code for generating qrcode in jpeg and png format but want to also generate svg qrcode with background image in PHP. I am using qrlib.php for generating jpeg and png format.

like image 523
Khushang Bhavnagarwala. Avatar asked Aug 20 '13 06:08

Khushang Bhavnagarwala.


People also ask

Can we generate QR code for image?

Yes, you can create a QR code for a picture using QRTIGER QR code generator online by following the instructions above.


2 Answers

QRlib.php also does support SVG, doesn't it?

https://github.com/t0k4rt/phpqrcode

require_once(__DIR__.'/phpqrcode-master/qrlib.php');
echo QRcode::svg('hello');
like image 111
mgherkins Avatar answered Sep 30 '22 07:09

mgherkins


I think the answer is quite simple: as it seems to me there is a wrong build to download from the original source (= http://sourceforge.net/projects/phpqrcode/files/releases/). I tried this one and it didnt work for me either. On the other hand this source works: https://github.com/t0k4rt/phpqrcode Hope this helps. Uwe

like image 21
Uwe Mutz Avatar answered Sep 30 '22 09:09

Uwe Mutz