Skip to content

Commit

Permalink
make it possible to insert heif/heic images
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
  • Loading branch information
Julien Veyssier committed Sep 25, 2022
1 parent 1f6d09a commit b38d87f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/Controller/ImageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ class ImageController extends Controller {
'image/bmp',
'image/svg+xml',
'image/webp',
'image/heic',
'image/heif',
];

/**
Expand Down
2 changes: 2 additions & 0 deletions src/components/EditorWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ const IMAGE_MIMES = [
'image/bmp',
'image/svg+xml',
'image/webp',
'image/heic',
'image/heif',
]
export default {
Expand Down
2 changes: 1 addition & 1 deletion src/components/MenuBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div class="menubar" :class="{ 'show': isVisible, 'autohide': autohide }">
<input ref="imageFileInput"
type="file"
accept="image/*"
accept="image/*, image/heic, image/heif"
aria-hidden="true"
class="hidden-visually"
:multiple="true"
Expand Down

0 comments on commit b38d87f

Please sign in to comment.