Skip to content

Commit

Permalink
SVS: update isThisType to reject files with a single IFD
Browse files Browse the repository at this point in the history
  • Loading branch information
melissalinkert committed Jun 26, 2024
1 parent 7ca9980 commit 37348d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/formats-gpl/src/loci/formats/in/SVSReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 37348d9

Please sign in to comment.