* @copyright 2023 smiley * @license MIT * * @noinspection PhpComposerExtensionStubsInspection */ namespace WCPOS\Vendor\chillerlan\QRCode\Output; use function imagepng, max, min; /** * GdImage png output * * @see \imagepng() */ class QRGdImagePNG extends QRGdImage { public const MIME_TYPE = 'image/png'; /** * @inheritDoc */ protected function renderImage() : void { imagepng($this->image, null, max(-1, min(9, $this->options->quality))); } }