|
@@ -17,34 +17,34 @@ require_once __DIR__.'/../vendor/autoload.php';
|
|
|
$data = 'https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s';
|
|
$data = 'https://www.youtube.com/watch?v=DLzxrzFCyOs&t=43s';
|
|
|
|
|
|
|
|
$options = new QROptions([
|
|
$options = new QROptions([
|
|
|
- 'version' => 5,
|
|
|
|
|
|
|
+ 'version' => 7,
|
|
|
'outputType' => QRCode::OUTPUT_IMAGE_PNG,
|
|
'outputType' => QRCode::OUTPUT_IMAGE_PNG,
|
|
|
'eccLevel' => QRCode::ECC_L,
|
|
'eccLevel' => QRCode::ECC_L,
|
|
|
- 'scale' => 10,
|
|
|
|
|
|
|
+ 'scale' => 5,
|
|
|
'imageBase64' => false,
|
|
'imageBase64' => false,
|
|
|
'moduleValues' => [
|
|
'moduleValues' => [
|
|
|
// finder
|
|
// finder
|
|
|
- 1536 => [255, 0, 0], // dark (true)
|
|
|
|
|
|
|
+ 1536 => [0, 63, 255], // dark (true)
|
|
|
6 => [255, 255, 255], // light (false), white is the transparency color and is enabled by default
|
|
6 => [255, 255, 255], // light (false), white is the transparency color and is enabled by default
|
|
|
// alignment
|
|
// alignment
|
|
|
- 2560 => [255, 0, 0],
|
|
|
|
|
|
|
+ 2560 => [255, 0, 255],
|
|
|
10 => [255, 255, 255],
|
|
10 => [255, 255, 255],
|
|
|
// timing
|
|
// timing
|
|
|
- 3072 => [0, 0, 0],
|
|
|
|
|
- 12 => [200, 200, 200],
|
|
|
|
|
|
|
+ 3072 => [255, 0, 0],
|
|
|
|
|
+ 12 => [255, 255, 255],
|
|
|
// format
|
|
// format
|
|
|
- 3584 => [0, 0, 0],
|
|
|
|
|
- 14 => [200, 200, 200],
|
|
|
|
|
|
|
+ 3584 => [67, 191, 84],
|
|
|
|
|
+ 14 => [255, 255, 255],
|
|
|
// version
|
|
// version
|
|
|
- 4096 => [0, 0, 0],
|
|
|
|
|
- 16 => [200, 200, 200],
|
|
|
|
|
|
|
+ 4096 => [62, 174, 190],
|
|
|
|
|
+ 16 => [255, 255, 255],
|
|
|
// data
|
|
// data
|
|
|
- 1024 => [0, 0, 150],
|
|
|
|
|
|
|
+ 1024 => [0, 0, 0],
|
|
|
4 => [255, 255, 255],
|
|
4 => [255, 255, 255],
|
|
|
// darkmodule
|
|
// darkmodule
|
|
|
512 => [0, 0, 0],
|
|
512 => [0, 0, 0],
|
|
|
// separator
|
|
// separator
|
|
|
- 8 => [200, 200, 200],
|
|
|
|
|
|
|
+ 8 => [255, 255, 255],
|
|
|
// quietzone
|
|
// quietzone
|
|
|
18 => [255, 255, 255],
|
|
18 => [255, 255, 255],
|
|
|
],
|
|
],
|