:octocat: allow returning the image resource

This commit is contained in:
codemasher
2020-11-16 14:09:50 +01:00
parent 2640d2f30c
commit e437956429
5 changed files with 49 additions and 12 deletions
+17 -1
View File
@@ -156,6 +156,22 @@ trait QROptionsTrait{
*/
protected string $markupLight = '#fff';
/**
* Return the image resource instead of a render if applicable.
* This option overrides other output options, such as $cachefile and $imageBase64.
*
* Supported by the following modules:
*
* - QRImage: resource (PHP < 8), GdImage
* - QRImagick: Imagick
* - QRFpdf: FPDF
*
* @see \chillerlan\QRCode\Output\QROutputInterface::dump()
*
* @var bool
*/
protected bool $returnResource = false;
/**
* toggle base64 or raw image data
*/
@@ -186,7 +202,7 @@ trait QROptionsTrait{
/**
* Imagick output format
*
* @see Imagick::setType()
* @see \Imagick::setType()
*/
protected string $imagickFormat = 'png';