aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/chillerlan/php-qrcode/src/Output/QRGdImageGIF.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/chillerlan/php-qrcode/src/Output/QRGdImageGIF.php')
-rw-r--r--vendor/chillerlan/php-qrcode/src/Output/QRGdImageGIF.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/vendor/chillerlan/php-qrcode/src/Output/QRGdImageGIF.php b/vendor/chillerlan/php-qrcode/src/Output/QRGdImageGIF.php
new file mode 100644
index 000000000..a02130907
--- /dev/null
+++ b/vendor/chillerlan/php-qrcode/src/Output/QRGdImageGIF.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Class QRGdImageGIF
+ *
+ * @created 25.10.2023
+ * @author smiley <smiley@chillerlan.net>
+ * @copyright 2023 smiley
+ * @license MIT
+ *
+ * @noinspection PhpComposerExtensionStubsInspection
+ */
+
+namespace chillerlan\QRCode\Output;
+
+use function imagegif;
+
+/**
+ * GdImage gif output
+ *
+ * @see \imagegif()
+ */
+class QRGdImageGIF extends QRGdImage{
+
+ public const MIME_TYPE = 'image/gif';
+
+ /**
+ * @inheritDoc
+ */
+ protected function renderImage():void{
+ imagegif($this->image);
+ }
+
+}