Skip to content

Commit

Permalink
Check both 8bit and 10bit variants of AVIF and update test images.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjeffburke committed May 4, 2021
1 parent 8ca5c41 commit 1fcaff1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions test/impro.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -965,9 +965,22 @@ describe('impro', () => {
});
});

it('should support avif as a source format', () => {
it('should support avif 8bit as a source format', () => {
return expect(
'cosmos_frame12924_yuv420_10bpc_bt2020_pq_q50.avif',
'Chimera-AV1-8bit-480x270-552kbps-100.avif',
'when piped through',
impro.sharp().resize(10, 10).jpeg().flush(),
'to yield output satisfying to have metadata satisfying',
{
format: 'JPEG',
size: { width: 10 },
}
);
});

it('should support avif 10bit as a source format', () => {
return expect(
'Chimera-AV1-10bit-480x270-531kbps-100.avif',
'when piped through',
impro.sharp().resize(10, 10).jpeg().flush(),
'to yield output satisfying to have metadata satisfying',
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 1fcaff1

Please sign in to comment.