Skip to content

Commit 8a35c23

Browse files
committed
Add webm and avif to file types
Signed-off-by: Thomas von Deyen <[email protected]>
1 parent 47e53c2 commit 8a35c23

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

config/locales/alchemy.en.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ en:
8383
audio/mpeg: MP3 Audio
8484
audio/wav: WAV Audio
8585
audio/x-wav: WAV Audio
86+
image/avif: AVIF Image
8687
image/gif: GIF Image
8788
image/jpeg: JPG Image
8889
image/png: PNG Image
@@ -95,6 +96,7 @@ en:
9596
video/mp4: MPEG-4 Video
9697
video/mpeg: MPEG Video
9798
video/quicktime: Quicktime Video
99+
video/webm: WebM Video
98100
video/x-flv: Flash Video
99101
video/x-ms-wmv: Windows Media Video
100102
video/x-msvideo: AVI Video

lib/alchemy/filetypes.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ module Filetypes
1212
]
1313

1414
IMAGE_FILE_TYPES = [
15+
"image/avif",
1516
"image/gif",
1617
"image/jpeg",
1718
"image/png",
1819
"image/svg+xml",
1920
"image/tiff",
21+
"image/webp",
2022
"image/x-psd"
2123
]
2224

@@ -28,6 +30,7 @@ module Filetypes
2830
"video/mp4",
2931
"video/mpeg",
3032
"video/quicktime",
33+
"video/webm",
3134
"video/x-msvideo",
3235
"video/x-ms-wmv"
3336
]

0 commit comments

Comments
 (0)