Skip to content

[Feature Request]: Setting to set force-color-profile and correctly handle color profiles when using sharp interpolation #232

@ollm

Description

@ollm

Preflight Checklist

  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe your suggested feature

Preference to force color profile using force-color-profile flag in main.js file.

app.commandLine.appendSwitch('force-color-profile', 'display-p3-d65');

Color profiles supported by electron/chromium:

  • srgb: sRGB
  • display-p3-d65: Display P3 D65
  • rec2020: ITU-R BT.2020
  • color-spin-gamma24: Color spin with gamma 2.4
  • scrgb-linear: scRGB linear (HDR where available)
  • hdr10: HDR10 (HDR where available)

Additionally, sharp must be used correctly so that color profile information is not lost when resizing, for example, using keepIccProfile or keepMetadata.

Additional Information

No response

Sample file

No response

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions