From 37348d9f287138714f7a1f60c63668caa6887be0 Mon Sep 17 00:00:00 2001 From: Melissa Linkert Date: Wed, 26 Jun 2024 12:28:27 -0500 Subject: [PATCH] SVS: update isThisType to reject files with a single IFD See https://github.com/IDR/idr-metadata/issues/699 --- components/formats-gpl/src/loci/formats/in/SVSReader.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/formats-gpl/src/loci/formats/in/SVSReader.java b/components/formats-gpl/src/loci/formats/in/SVSReader.java index d3231b5bfdf..d9820b62dd7 100644 --- a/components/formats-gpl/src/loci/formats/in/SVSReader.java +++ b/components/formats-gpl/src/loci/formats/in/SVSReader.java @@ -174,7 +174,9 @@ else if (description instanceof String) { } if (imageDescription != null && imageDescription.startsWith(APERIO_IMAGE_DESCRIPTION_PREFIX)) { - return true; + // reject anything with just one IFD, as that indicates there is + // no pyramid, thumbnail, label, or macro + return tiffParser.getIFDOffsets().length > 1; } } return false;