Files
nextcloud-recognize/lib/Constants.php
Marcel Klehr 3a9cc5b674 fix: Do not attempt to classify TIFF files
fixes #1430

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2025-12-22 11:50:15 +01:00

21 lines
956 B
PHP

<?php
/*
* Copyright (c) 2022 The Recognize contributors.
* This file is licensed under the Affero General Public License version 3 or later. See the COPYING file.
*/
declare(strict_types=1);
namespace OCA\Recognize;
final class Constants {
public const IMAGE_FORMATS = ['image/jpeg', 'image/png', 'image/bmp', 'image/heic', 'image/heif', 'image/webp'];
public const AUDIO_FORMATS = ['audio/mpeg', 'audio/mp4', 'audio/ogg', 'audio/vnd.wav', 'audio/flac'];
public const VIDEO_FORMATS = ['image/gif', 'video/mp4', 'video/MP2T', 'video/x-msvideo', 'video/x-ms-wmv', 'video/quicktime', 'video/ogg', 'video/mpeg', 'video/webm', 'video/x-matroska'];
public const DIRECTORY_FORMATS = ['httpd/unix-directory'];
public const IGNORE_MARKERS_ALL = ['.nomedia'];
public const IGNORE_MARKERS_IMAGE = ['.noimage'];
public const IGNORE_MARKERS_VIDEO = ['.novideo'];
public const IGNORE_MARKERS_AUDIO = ['.nomusic'];
public const MAX_FILE_SIZE = 10000000;
}