diff options
Diffstat (limited to 'lib/private/Preview/TGA.php')
-rw-r--r-- | lib/private/Preview/TGA.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/private/Preview/TGA.php b/lib/private/Preview/TGA.php new file mode 100644 index 00000000000..675907b4e49 --- /dev/null +++ b/lib/private/Preview/TGA.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; + +//.tga +class TGA extends Bitmap { + /** + * {@inheritDoc} + */ + public function getMimeType(): string { + return '/image\/(x-)?t(ar)?ga/'; + } + + /** + * {@inheritDoc} + */ + protected function getAllowedMimeTypes(): string { + return '/image\/(x-)?t(ar)?ga/'; + } +} |