Skip to content

Commit

Permalink
feat: avif support (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut authored Nov 26, 2021
1 parent ab17b85 commit 110523c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,21 @@ const applyCropCoordsToInfo = function (info, crop, size, coords) {
return info
}

const imagesOnlyAcceptTypes = `image/*,image/heic`
const imagesOnlyAcceptTypes = [
'image/*',
'image/heif',
'image/heif-sequence',
'image/heic',
'image/heic-sequence',
'image/avif',
'image/avif-sequence',
'.heif',
'.heifs',
'.heic',
'.heics',
'.avif',
'.avifs'
].join(',')

const fileInput = function (container, settings, fn) {
var accept, input, run
Expand Down

0 comments on commit 110523c

Please sign in to comment.