2021-01-22 04:35:37 -05:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2021-01-22 04:35:37 -05:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2021-01-22 04:35:37 -05:00
|
|
|
*/
|
|
|
|
|
namespace OC\Preview;
|
|
|
|
|
|
|
|
|
|
//.tga
|
|
|
|
|
class TGA extends Bitmap {
|
|
|
|
|
/**
|
|
|
|
|
* {@inheritDoc}
|
|
|
|
|
*/
|
|
|
|
|
public function getMimeType(): string {
|
2024-04-07 22:10:19 -04:00
|
|
|
return '/image\/(x-)?t(ar)?ga/';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* {@inheritDoc}
|
|
|
|
|
*/
|
|
|
|
|
protected function getAllowedMimeTypes(): string {
|
|
|
|
|
return '/image\/(x-)?t(ar)?ga/';
|
2021-01-22 04:35:37 -05:00
|
|
|
}
|
|
|
|
|
}
|