forked from leftypol/leftypol
metadata.php: add SUPPORTED_IMAGE_MIME_TYPES array
This commit is contained in:
parent
cb4908e331
commit
71d8172495
1 changed files with 12 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue