# woocommerce-pos/1.10.24/vendor_prefixed/chillerlan/php-qrcode/src/Output/QRGdImageWEBP.php

WCPOS – Point of Sale (POS) plugin for WooCommerce, version 1.10.24. 32 lines.

- Page: https://pluginprobe.com/plugins/woocommerce-pos/1.10.24/code/vendor_prefixed/chillerlan/php-qrcode/src/Output/QRGdImageWEBP.php
- Raw: https://pluginprobe.com/plugins/woocommerce-pos/1.10.24/raw/vendor_prefixed/chillerlan/php-qrcode/src/Output/QRGdImageWEBP.php
- Modified: 2026-06-09T13:55:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/woocommerce-pos/1.10.24/code/vendor_prefixed/chillerlan/php-qrcode/src/Output/QRGdImageWEBP.php#L10-L20`.

```php
<?php

/**
 * Class QRGdImageWEBP
 *
 * @created      25.10.2023
 * @author       smiley <smiley@chillerlan.net>
 * @copyright    2023 smiley
 * @license      MIT
 *
 * @noinspection PhpComposerExtensionStubsInspection
 */
namespace WCPOS\Vendor\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)));
    }
}

```
