# woocommerce-pos/1.10.21/vendor_prefixed/chillerlan/php-qrcode/src/Output/QRGdImageJPEG.php

WCPOS – Point of Sale (POS) plugin for WooCommerce, version 1.10.21. 39 lines.

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

```php
<?php

/**
 * Class QRGdImageJPEG
 *
 * @created      25.10.2023
 * @author       smiley <smiley@chillerlan.net>
 * @copyright    2023 smiley
 * @license      MIT
 *
 * @noinspection PhpComposerExtensionStubsInspection
 */
namespace WCPOS\Vendor\chillerlan\QRCode\Output;

use function imagejpeg, max, min;
/**
 * GdImage jpeg output
 *
 * @see \imagejpeg()
 */
class QRGdImageJPEG extends QRGdImage
{
    public const MIME_TYPE = 'image/jpg';
    /**
     * @inheritDoc
     */
    protected function setTransparencyColor() : void
    {
        // noop - transparency is not supported
    }
    /**
     * @inheritDoc
     */
    protected function renderImage() : void
    {
        imagejpeg($this->image, null, max(-1, min(100, $this->options->quality)));
    }
}

```
