mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-09-01 13:08:14 +00:00
:octocat: add boolean option for BMP (RLE) compression in QRGdImage
This commit is contained in:
@@ -321,7 +321,7 @@ class QRGdImage extends QROutputAbstract{
|
||||
|
||||
switch($this->options->outputType){
|
||||
case QROutputInterface::GDIMAGE_BMP:
|
||||
imagebmp($this->image);
|
||||
imagebmp($this->image, null, ($this->options->quality > 0));
|
||||
break;
|
||||
case QROutputInterface::GDIMAGE_GIF:
|
||||
imagegif($this->image);
|
||||
|
||||
@@ -274,10 +274,11 @@ trait QROptionsTrait{
|
||||
*
|
||||
* The given value depends on the used output type:
|
||||
*
|
||||
* @see \imagejpeg()
|
||||
* @see \imagepng()
|
||||
* @see \imagewebp()
|
||||
* @see \Imagick::setImageCompressionQuality()
|
||||
* - GDIMAGE_BMP {@see \imagebmp()} [0-1]
|
||||
* - GDIMAGE_JPG {@see \imagejpeg()} [0-100]
|
||||
* - GDIMAGE_WEBP {@see \imagepng()} [0-9]
|
||||
* - GDIMAGE_PNG {@see \imagewebp()} [0-100]
|
||||
* - IMAGICK {@see \Imagick::setImageCompressionQuality()} [0-100]
|
||||
*/
|
||||
protected int $quality = -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user