diff --git a/README.md b/README.md index 5c0d9c480..c997c7e0e 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,12 @@ Quick and simple: echo ''; ``` +

+ + QR codes are awesome! + +

+ Wait, what was that? Please again, slower! diff --git a/examples/example_image.png b/examples/example_image.png new file mode 100644 index 000000000..b98aa1a00 Binary files /dev/null and b/examples/example_image.png differ diff --git a/examples/image.php b/examples/image.php index 0c94b64e0..b8497eec6 100644 --- a/examples/image.php +++ b/examples/image.php @@ -3,8 +3,13 @@ require_once '../vendor/autoload.php'; use chillerlan\QRCode\Output\QRImage; +use chillerlan\QRCode\Output\QRImageOptions; use chillerlan\QRCode\QRCode; -$im = (new QRCode('https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s', new QRImage))->output(); +$qrImageOptions = new QRImageOptions; +$qrImageOptions->pixelSize = 10; +#$qrImageOptions->cachefile = 'example_image.png'; + +$im = (new QRCode('https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s', new QRImage($qrImageOptions)))->output(); echo '';