TGA.php 419 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OC\Preview;
  7. //.tga
  8. class TGA extends Bitmap {
  9. /**
  10. * {@inheritDoc}
  11. */
  12. public function getMimeType(): string {
  13. return '/image\/(x-)?t(ar)?ga/';
  14. }
  15. /**
  16. * {@inheritDoc}
  17. */
  18. protected function getAllowedMimeTypes(): string {
  19. return '/image\/(x-)?t(ar)?ga/';
  20. }
  21. }