mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-16 16:55:28 +00:00
✨ +imagick output
This commit is contained in:
+7
-2
@@ -16,7 +16,7 @@ use chillerlan\QRCode\Data\{
|
||||
AlphaNum, Byte, Kanji, MaskPatternTester, Number, QRCodeDataException, QRDataInterface, QRMatrix
|
||||
};
|
||||
use chillerlan\QRCode\Output\{
|
||||
QRCodeOutputException, QRImage, QRMarkup, QROutputInterface, QRString
|
||||
QRCodeOutputException, QRImage, QRImagick, QRMarkup, QROutputInterface, QRString
|
||||
};
|
||||
use chillerlan\Settings\SettingsContainerInterface;
|
||||
|
||||
@@ -44,6 +44,8 @@ class QRCode{
|
||||
const OUTPUT_STRING_JSON = 'json';
|
||||
const OUTPUT_STRING_TEXT = 'text';
|
||||
|
||||
const OUTPUT_IMAGICK = 'imagick';
|
||||
|
||||
const OUTPUT_CUSTOM = 'custom';
|
||||
|
||||
const VERSION_AUTO = -1;
|
||||
@@ -87,7 +89,10 @@ class QRCode{
|
||||
QRString::class => [
|
||||
self::OUTPUT_STRING_JSON,
|
||||
self::OUTPUT_STRING_TEXT,
|
||||
]
|
||||
],
|
||||
QRImagick::class => [
|
||||
self::OUTPUT_IMAGICK,
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user