Skip to content

Enhancement: provide wideGamut option to process in 16-bit linear colourspace #1317

@lovell

Description

@lovell

Proposed API:

sharp(input, { wideGamut: true })
  ...

This will convert input pixel values to a 16-bit linear colourspace (either RGB16 or scRGB), which has a wider gamut than non-linear sRGB. It will use an embedded input profile, if any, converted via the XYZ connection space.

Setting this to true might infer fastShrinkOnLoad: false but need to think about that.

The gamma docs need to be updated too.

See #1324 for custom input profile support.

See #1323 for custom output profile support.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions