mirror of
https://github.com/nextcloud/server.git
synced 2026-10-16 03:51:45 +02:00
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
35 lines
585 B
PHP
35 lines
585 B
PHP
<?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/';
|
|
}
|
|
|
|
#[\Override]
|
|
protected function getMagicStrings(): array {
|
|
return [];
|
|
}
|
|
|
|
#[\Override]
|
|
protected function getImagickFormatHint(): string {
|
|
return 'tga';
|
|
}
|
|
}
|