From 71d817249526195357654516fb1156cdc8e4d9d6 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Tue, 25 Mar 2025 22:55:18 +0100 Subject: [PATCH] metadata.php: add SUPPORTED_IMAGE_MIME_TYPES array --- inc/functions/metadata.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/inc/functions/metadata.php b/inc/functions/metadata.php index b7b7c665..9abfecb7 100644 --- a/inc/functions/metadata.php +++ b/inc/functions/metadata.php @@ -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.