aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/TGA.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-01-22 10:35:37 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-01-22 10:42:51 +0100
commitd47b84be67242960f6af5e8d16ea140e62a0933b (patch)
tree33232f3c91cfe9c9745f5fc6070a27d5a44ec49e /lib/private/Preview/TGA.php
parent798924757458f388a58b36038371f70dad6a3c90 (diff)
downloadnextcloud-server-d47b84be67242960f6af5e8d16ea140e62a0933b.tar.gz
nextcloud-server-d47b84be67242960f6af5e8d16ea140e62a0933b.zip
Add SGI and TGA preview support
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/Preview/TGA.php')
-rw-r--r--lib/private/Preview/TGA.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/private/Preview/TGA.php b/lib/private/Preview/TGA.php
new file mode 100644
index 00000000000..d29cb3e2c10
--- /dev/null
+++ b/lib/private/Preview/TGA.php
@@ -0,0 +1,33 @@
+<?php
+/**
+ * @copyright 2021 John Molakvoæ <skjnldsv@protonmail.com>
+ *
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+namespace OC\Preview;
+
+//.tga
+class TGA extends Bitmap {
+ /**
+ * {@inheritDoc}
+ */
+ public function getMimeType(): string {
+ return '/image\/t(ar)?ga/';
+ }
+}