Add jxl support

This commit is contained in:
tr7zw 2022-06-07 00:28:41 +02:00
parent 2d97faa7c0
commit ea35faee91

View File

@ -11,6 +11,7 @@ SUPPORTED_IMG_TYPES = %w(
image/avif
image/gif
image/svg+xml
image/jxl
)
def random_str
@ -49,6 +50,7 @@ def register_mime_types
# defiend by Crystal in `MIME.DEFAULT_TYPES`
".apng" => "image/apng",
".avif" => "image/avif",
".jxl" => "image/jxl",
}.each do |k, v|
MIME.register k, v
end