# woocommerce-pos/1.10.7/vendor_prefixed/chillerlan/php-qrcode/src/Output/QRGdImagePNG.php

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

- Page: https://pluginprobe.com/plugins/woocommerce-pos/1.10.7/code/vendor_prefixed/chillerlan/php-qrcode/src/Output/QRGdImagePNG.php
- Raw: https://pluginprobe.com/plugins/woocommerce-pos/1.10.7/raw/vendor_prefixed/chillerlan/php-qrcode/src/Output/QRGdImagePNG.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.7/code/vendor_prefixed/chillerlan/php-qrcode/src/Output/QRGdImagePNG.php#L10-L20`.

```php
<?php

/**
 * Class QRGdImagePNG
 *
 * @created      25.10.2023
 * @author       smiley <smiley@chillerlan.net>
 * @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)));
    }
}

```
