diff --git a/.changeset/wicked-planets-raise.md b/.changeset/wicked-planets-raise.md new file mode 100644 index 000000000..19ff1ac4c --- /dev/null +++ b/.changeset/wicked-planets-raise.md @@ -0,0 +1,5 @@ +--- +'@vivjs/loaders': patch +--- + +Relax `IFD` and `PlaneCount` strictness in OME-XML validation diff --git a/packages/loaders/src/omexml.ts b/packages/loaders/src/omexml.ts index f07558b3b..e9efd0557 100644 --- a/packages/loaders/src/omexml.ts +++ b/packages/loaders/src/omexml.ts @@ -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()