metadata.php: add SUPPORTED_IMAGE_MIME_TYPES array

This commit is contained in:
Zankaria 2025-03-25 22:55:18 +01:00
parent cb4908e331
commit 71d8172495

View file

@ -2,6 +2,18 @@
namespace Vichan\Functions\Metadata;
/**
* All image formats supported by vichan.
*/
const SUPPORTED_IMAGE_MIME_TYPES = [
'image/jpeg',
'image/png',
'image/gif',
'image/webp',
'image/bmp',
'image/avif'
];
/**
* @param string $mime Lowercase valid mime type.
* @return ?string Vichan's preferred extension for the given mime type, if any.