Skip to content

Commit 2919e45

Browse files
author
Julien Veyssier
committed
make it possible to insert heif/heic images
Signed-off-by: Julien Veyssier <[email protected]>
1 parent 1693e3c commit 2919e45

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

lib/Controller/ImageController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ class ImageController extends Controller {
5050
'image/bmp',
5151
'image/svg+xml',
5252
'image/webp',
53+
'image/heic',
54+
'image/heif',
5355
];
5456

5557
/**

src/components/EditorWrapper.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ const IMAGE_MIMES = [
121121
'image/bmp',
122122
'image/svg+xml',
123123
'image/webp',
124+
'image/heic',
125+
'image/heif',
124126
]
125127
126128
export default {

src/components/MenuBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div class="menubar" :class="{ 'show': isVisible, 'autohide': autohide }">
2525
<input ref="imageFileInput"
2626
type="file"
27-
accept="image/*"
27+
accept="image/*, image/heic, image/heif"
2828
aria-hidden="true"
2929
class="hidden-visually"
3030
:multiple="true"

0 commit comments

Comments
 (0)