We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a110e7 commit bb73f7bCopy full SHA for bb73f7b
examples/reader.php
@@ -0,0 +1,23 @@
1
+<?php
2
+/**
3
+ * reader.php
4
+ *
5
+ * @created 25.04.2022
6
+ * @author smiley <[email protected]>
7
+ * @copyright 2022 smiley
8
+ * @license MIT
9
+ */
10
+
11
+use chillerlan\QRCode\{QRCode, QROptions};
12
13
+require_once __DIR__.'/../vendor/autoload.php';
14
15
+/** @var chillerlan\Settings\SettingsContainerInterface $options */
16
+$options = new QROptions;
17
+$options->readerUseImagickIfAvailable = false;
18
+$options->readerGrayscale = true;
19
+$options->readerIncreaseContrast = true;
20
21
+$result = (new QRCode($options))->readFromFile(__DIR__.'/../.github/images/example_image.png');
22
23
+var_dump($result);
0 commit comments