* no needs to echo to get content, qrcode:svg return directly a svg file * removed header('Content-Disposition: filename="'.$filename.'"'); since it prevents users from changing headers with content type attachment These changes should not induce bc break
This adds a new, optional argument to the eps function, which allows you to use CMYK colors instead of the regular RGB when creating the EPS file. This allows you to generate QR codes with true black instead of the automagic four color black default when using the QR code in a CMYK based medium such as the newspaper or printing industry. Example: QRcode::eps($text, false, QR_ECLEVEL_L, 40, 4, false, 0x00000000, 0x000000FF, true); The back / front colors still mean the same, but we now also use the upper byte (for the C value).