PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.20
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.20
1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 1.10.0 1.9.17 1.9.15 1.9.16 All 164 releases
woocommerce-pos / vendor_prefixed / chillerlan / php-qrcode / src / Output / QRGdImageJPEG.php

QRGdImageJPEG.php in WCPOS – Point of Sale (POS) plugin for WooCommerce 1.10.20, at vendor_prefixed/chillerlan/php-qrcode/src/Output/QRGdImageJPEG.php

39 lines 768 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Class QRGdImageJPEG
5 *
6 * @created 25.10.2023
7 * @author smiley <[email protected]>
8 * @copyright 2023 smiley
9 * @license MIT
10 *
11 * @noinspection PhpComposerExtensionStubsInspection
12 */
13 namespace WCPOS\Vendor\chillerlan\QRCode\Output;
14
15 use function imagejpeg, max, min;
16 /**
17 * GdImage jpeg output
18 *
19 * @see \imagejpeg()
20 */
21 class QRGdImageJPEG extends QRGdImage
22 {
23 public const MIME_TYPE = 'image/jpg';
24 /**
25 * @inheritDoc
26 */
27 protected function setTransparencyColor() : void
28 {
29 // noop - transparency is not supported
30 }
31 /**
32 * @inheritDoc
33 */
34 protected function renderImage() : void
35 {
36 imagejpeg($this->image, null, max(-1, min(100, $this->options->quality)));
37 }
38 }
39