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

@ -5,6 +5,8 @@ slug: changelog/v0.34.4
* Upgrade to libvips v8.17.2 for upstream bug fixes. * Upgrade to libvips v8.17.2 for upstream bug fixes.
* Ensure TIFF `subifd` and OpenSlide `level` input options are respected (regression in 0.34.3).
* Ensure `autoOrient` occurs before non-90 angle rotation. * Ensure `autoOrient` occurs before non-90 angle rotation.
[#4425](https://github.com/lovell/sharp/issues/4425) [#4425](https://github.com/lovell/sharp/issues/4425)

View File

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