Skip to content

Commit 03e1b19

Browse files
committed
Allow wide-gamut HEIF output at higher bitdepths #4344
1 parent 3e41f8b commit 03e1b19

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/src/content/docs/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ Requires libvips v8.16.1
4949
[#4316](https://github.com/lovell/sharp/pull/4316)
5050
[@florentzabera](https://github.com/florentzabera)
5151

52+
* Allow wide-gamut HEIF output at higher bitdepths.
53+
[#4344](https://github.com/lovell/sharp/issues/4344)
54+
5255
## v0.33 - *gauge*
5356

5457
Requires libvips v8.15.3

src/pipeline.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ class PipelineWorker : public Napi::AsyncWorker {
10321032
(baton->formatOut == "input" && inputImageType == sharp::ImageType::HEIF)) {
10331033
// Write HEIF to buffer
10341034
sharp::AssertImageTypeDimensions(image, sharp::ImageType::HEIF);
1035-
image = sharp::RemoveAnimationProperties(image).cast(VIPS_FORMAT_UCHAR);
1035+
image = sharp::RemoveAnimationProperties(image);
10361036
VipsArea *area = reinterpret_cast<VipsArea*>(image.heifsave_buffer(VImage::option()
10371037
->set("keep", baton->keepMetadata)
10381038
->set("Q", baton->heifQuality)
@@ -1227,7 +1227,7 @@ class PipelineWorker : public Napi::AsyncWorker {
12271227
(willMatchInput && inputImageType == sharp::ImageType::HEIF)) {
12281228
// Write HEIF to file
12291229
sharp::AssertImageTypeDimensions(image, sharp::ImageType::HEIF);
1230-
image = sharp::RemoveAnimationProperties(image).cast(VIPS_FORMAT_UCHAR);
1230+
image = sharp::RemoveAnimationProperties(image);
12311231
image.heifsave(const_cast<char*>(baton->fileOut.data()), VImage::option()
12321232
->set("keep", baton->keepMetadata)
12331233
->set("Q", baton->heifQuality)

0 commit comments

Comments
 (0)