mirror of
https://github.com/lovell/sharp.git
synced 2025-07-10 02:50:15 +02:00
Add support for input with 16-bit RGB profile #2037
This commit is contained in:
parent
4828a17643
commit
18e1f10a94
@ -27,6 +27,9 @@ Requires libvips v8.9.0.
|
||||
[#2024](https://github.com/lovell/sharp/pull/2024)
|
||||
[@BrychanOdlum](https://github.com/BrychanOdlum)
|
||||
|
||||
* Add support for input with 16-bit RGB profile.
|
||||
[#2037](https://github.com/lovell/sharp/issues/2037)
|
||||
|
||||
## v0.23 - "*vision*"
|
||||
|
||||
Requires libvips v8.8.1.
|
||||
|
@ -308,6 +308,7 @@ class PipelineWorker : public Nan::AsyncWorker {
|
||||
try {
|
||||
image = image.icc_transform("srgb", VImage::option()
|
||||
->set("embedded", TRUE)
|
||||
->set("depth", image.interpretation() == VIPS_INTERPRETATION_RGB16 ? 16 : 8)
|
||||
->set("intent", VIPS_INTENT_PERCEPTUAL));
|
||||
} catch(...) {
|
||||
// Ignore failure of embedded profile
|
||||
|
Loading…
x
Reference in New Issue
Block a user