Add isPalette and bitsPerSample metadata, deprecate paletteBitDepth

This commit is contained in:
Lovell Fuller
2024-10-29 09:11:19 +00:00
parent 6480a94181
commit 3154af776e
9 changed files with 42 additions and 9 deletions

View File

@@ -34,6 +34,7 @@ describe('AVIF', () => {
// Math.round(13.40625) = 13
height: 13,
isProgressive: false,
isPalette: false,
space: 'srgb',
width: 32
});
@@ -55,6 +56,8 @@ describe('AVIF', () => {
hasProfile: false,
height: 26,
isProgressive: false,
isPalette: false,
bitsPerSample: 8,
pagePrimary: 0,
pages: 1,
space: 'srgb',
@@ -77,6 +80,8 @@ describe('AVIF', () => {
hasProfile: false,
height: 13,
isProgressive: false,
isPalette: false,
bitsPerSample: 8,
pagePrimary: 0,
pages: 1,
space: 'srgb',
@@ -100,6 +105,8 @@ describe('AVIF', () => {
hasProfile: false,
height: 300,
isProgressive: false,
isPalette: false,
bitsPerSample: 8,
pagePrimary: 0,
pages: 1,
space: 'srgb',
@@ -124,6 +131,8 @@ describe('AVIF', () => {
hasProfile: false,
height: 26,
isProgressive: false,
isPalette: false,
bitsPerSample: 8,
pagePrimary: 0,
pages: 1,
space: 'srgb',