How should I generate the qrcode image as .jpg instead of .png?
I tried QRcode::jpg($qrcode, $file, 'L', 10, 3); but it is not working, giving this error: Fatal error: Uncaught Error: Call to undefined method QRcode::jpg(). PNG works fine as it is QRcode::png($qrcode, $file, 'L', 10, 3);.
Note: this is the phpqrcode library: http://phpqrcode.sourceforge.net/