✨ +imagick output

This commit is contained in:
codemasher
2018-09-19 18:13:58 +02:00
parent 3fd7e80148
commit 0cfd4fb3a6
6 changed files with 218 additions and 3 deletions
+7 -2
View File
@@ -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,
],
];
/**