This commit is contained in:
codemasher
2020-11-18 17:09:57 +01:00
parent dcf125a8b9
commit 8838eec836
5 changed files with 8 additions and 2 deletions
+1
View File
@@ -13,6 +13,7 @@ $options = new QROptions([
'outputType' => QRCode::OUTPUT_FPDF,
'eccLevel' => QRCode::ECC_L,
'scale' => 5,
'imageBase64' => false,
'moduleValues' => [
// finder
1536 => [0, 63, 255], // dark (true)
-1
View File
@@ -21,7 +21,6 @@ $options = new QROptions([
'outputType' => QRCode::OUTPUT_IMAGICK,
'eccLevel' => QRCode::ECC_L,
'scale' => 5,
'imageBase64' => false,
'moduleValues' => [
// finder
1536 => '#A71111', // dark (true)
+3 -1
View File
@@ -8,6 +8,8 @@
* @author Smiley <smiley@chillerlan.net>
* @copyright 2015 Smiley
* @license MIT
*
* @noinspection PhpComposerExtensionStubsInspection
*/
namespace chillerlan\QRCode\Output;
@@ -110,7 +112,7 @@ class QRImage extends QROutputAbstract{
$imageData = $this->dumpImage($file);
if((bool)$this->options->imageBase64){
if($this->options->imageBase64){
$imageData = sprintf('data:image/%s;base64,%s', $this->options->outputType, base64_encode($imageData));
}
+2
View File
@@ -8,6 +8,8 @@
* @author smiley <smiley@chillerlan.net>
* @copyright 2018 smiley
* @license MIT
*
* @noinspection PhpComposerExtensionStubsInspection
*/
namespace chillerlan\QRCode\Output;
+2
View File
@@ -8,6 +8,8 @@
* @author smiley <smiley@chillerlan.net>
* @copyright 2018 smiley
* @license MIT
*
* @noinspection PhpComposerExtensionStubsInspection
*/
namespace chillerlan\QRCodeTest\Output;