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