Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TIFF: Fix spec() and spec_dimensions() for mipmapped tiff files (#2723)
For "mip-mapped" TIFF files where we use the multiple images in the file to emulate MIP-maps rather than what we ordinarily consider subimages, a call to `ImageInput::spec(subimage,miplevel)` was not properly recognizing invalid subimage values and returning an empty ImageSpec as advertised. Basically, we assumed that they would only ask for a valid subimage and miplevel and didn't properly handle out of range values. Same problem for spec_dimensions(). Signed-off-by: Larry Gritz <lg@larrygritz.com>
- Loading branch information