Ensure TIFF subifd and OpenSlide level are respected

Fixes regression introduced in 852c7f8
This commit is contained in:
Lovell Fuller
2025-09-16 08:44:08 +01:00
parent 9f4bace03b
commit 35d3f56c67
2 changed files with 4 additions and 2 deletions

View File

@@ -421,14 +421,14 @@ namespace sharp {
->set("high_bitdepth", descriptor->svgHighBitdepth);
break;
case ImageType::TIFF:
option->set("tiffSubifd", descriptor->tiffSubifd);
option->set("subifd", descriptor->tiffSubifd);
break;
case ImageType::PDF:
option->set("dpi", descriptor->density)
->set("background", descriptor->pdfBackground);
break;
case ImageType::OPENSLIDE:
option->set("openSlideLevel", descriptor->openSlideLevel);
option->set("level", descriptor->openSlideLevel);
break;
case ImageType::JP2:
option->set("oneshot", descriptor->jp2Oneshot);