aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/SGI.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Preview/SGI.php')
-rw-r--r--lib/private/Preview/SGI.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/private/Preview/SGI.php b/lib/private/Preview/SGI.php
new file mode 100644
index 00000000000..78b1ea5828a
--- /dev/null
+++ b/lib/private/Preview/SGI.php
@@ -0,0 +1,24 @@
+<?php
+
+/**
+ * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+namespace OC\Preview;
+
+//.sgi
+class SGI extends Bitmap {
+ /**
+ * {@inheritDoc}
+ */
+ public function getMimeType(): string {
+ return '/image\/(x-)?sgi/';
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getAllowedMimeTypes(): string {
+ return '/image\/(x-)?sgi/';
+ }
+}