Skip to content

Commit

Permalink
Add avif-sequence file for animation (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
tk-wing committed Dec 18, 2021
1 parent 2e71fd8 commit 752afb3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core.js
Expand Up @@ -477,6 +477,7 @@ class FileTypeParser {
const brandMajor = this.buffer.toString('binary', 8, 12).replace('\0', ' ').trim();
switch (brandMajor) {
case 'avif':
case 'avis':
return {ext: 'avif', mime: 'image/avif'};
case 'mif1':
return {ext: 'heic', mime: 'image/heif'};
Expand Down
Binary file added fixture/fixture-sequence.avif
Binary file not shown.
1 change: 1 addition & 0 deletions test.js
Expand Up @@ -177,6 +177,7 @@ const names = {
],
avif: [
'fixture-yuv420-8bit', // Multiple bit-depths and/or subsamplings
'fixture-sequence',
],
eps: [
'fixture',
Expand Down

0 comments on commit 752afb3

Please sign in to comment.