Skip to content

Commit 59e8ccc

Browse files
committed
test: add float32 test
1 parent f7d3c39 commit 59e8ccc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

img/float32.tif

240 KB
Binary file not shown.

src/__tests__/decode.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,14 @@ const files: TiffFile[] = [
129129
components: 4,
130130
alpha: true,
131131
},
132+
{
133+
name: 'float32.tif',
134+
width: 141,
135+
height: 125,
136+
bitsPerSample: 32,
137+
components: 1,
138+
alpha: false,
139+
},
132140
];
133141
const cases = files.map(
134142
(file) => [file.name, file, readImage(file.name)] as const,

0 commit comments

Comments
 (0)