Skip to content

Commit

Permalink
Merge pull request ome#4202 from melissalinkert/svs-reject-single-ifd
Browse files Browse the repository at this point in the history
SVS: update isThisType to reject files with a single IFD
  • Loading branch information
dgault authored Jul 8, 2024
2 parents 718b295 + 37348d9 commit 4860a21
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 4860a21

Please sign in to comment.