Skip to content

Commit

Permalink
feat(loaders): Relax IFD and PlaneCount strictness in OME-XML (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt authored Mar 12, 2024
1 parent 325fd59 commit 08815cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/wicked-planets-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vivjs/loaders': patch
---

Relax `IFD` and `PlaneCount` strictness in OME-XML validation
4 changes: 2 additions & 2 deletions packages/loaders/src/omexml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ const TiffDataSchema = z
.object({ UUID: UuidSchema.optional() })
.extend({
attr: z.object({
IFD: z.coerce.number(),
PlaneCount: z.coerce.number(),
IFD: z.coerce.number().default(0),
PlaneCount: z.coerce.number().default(1),
FirstT: z.coerce.number().optional(),
FirstC: z.coerce.number().optional(),
FirstZ: z.coerce.number().optional()
Expand Down

0 comments on commit 08815cb

Please sign in to comment.