mirror of
https://github.com/lovell/sharp.git
synced 2025-12-06 03:51:40 +01:00
Ensure TIFF subifd and OpenSlide level are respected
Fixes regression introduced in 852c7f8
This commit is contained in:
parent
9f4bace03b
commit
35d3f56c67
@ -5,6 +5,8 @@ slug: changelog/v0.34.4
|
||||
|
||||
* 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.
|
||||
[#4425](https://github.com/lovell/sharp/issues/4425)
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user