[Request/Idea] Oklab color model support?

Hier diskutieren die Betatester von PhotoLine untereinander und mit den Entwicklern
Benutzeravatar
shijan
Mitglied
Beiträge: 2107
Registriert: Mo 23 Dez 2019 13:21
Wohnort: Ukraine

[Request/Idea] Oklab color model support?

Beitrag von shijan »

Already posted this request in 2022 viewtopic.php?p=50725#p50725 but i guess it is better to create separate thread for this.
Oklab Wiki https://en.wikipedia.org/wiki/Oklab_color_space
Article that contains large collection of many related links https://publish.obsidian.md/xybre/perma ... 4cb41d4407

Oklab supported by LittleCMS. New versions of Photoshop use Oklab to interpolate colors in the gradient tool. Oklab was added to Krita (as plug-in?) https://krita-artists.org/t/oklab-support/75285

Also here is a very technical article with code example "Porting OkLab colorspace to integer arithmetic"
https://blog.pkh.me/p/38-porting-oklab- ... metic.html

Bild
Zuletzt geändert von shijan am Mi 27 Mai 2026 08:02, insgesamt 3-mal geändert.
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302
Benutzeravatar
shijan
Mitglied
Beiträge: 2107
Registriert: Mo 23 Dez 2019 13:21
Wohnort: Ukraine

Re: [Request/Idea] Oklab color model support?

Beitrag von shijan »

Here is another interesting advantage that could be useful for film negatives invert, if add Oklab (and its cylindrical counterpart, OKLCH) as additional mode for Curves and Levels and Hue Editor in PhotoLine:

"No Hue/Chroma Warping: Unlike older uniform spaces like CIELAB, Oklab preserves hue linearity. Inverting colors in older spaces often makes inverted blues shift into purples.
Perceived Lightness: Oklab maps lightness mathematically so that a 50% change is visually perceived exactly as a 50% change."
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302
Benutzeravatar
shijan
Mitglied
Beiträge: 2107
Registriert: Mo 23 Dez 2019 13:21
Wohnort: Ukraine

Re: [Request/Idea] Oklab color model support?

Beitrag von shijan »

Here is example how Oklab and Oklch color mixer UI looks in Color Designer plugin. It is really cool how they remap color area into normal rectangle. In most other online examples default Oklab color area field looks very different from simple rectangle.
screenshot-2.jpg
oklch-color-space-photoshop.jpg
Oklab also was added in latest versions of free drawing app Drawpile. But they note that it could be slow for realtime drawing. https://docs.drawpile.net/help/common/update2x3x0.html
Bild

Drawpile use Oklab as layer blending mode. That is really cool option!
Bild
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302
Benutzeravatar
shijan
Mitglied
Beiträge: 2107
Registriert: Mo 23 Dez 2019 13:21
Wohnort: Ukraine

Re: [Request/Idea] Oklab color model support?

Beitrag von shijan »

Gradient-Box - free web tool to create and compare OKLAB/OKLCH gradients and also export data for websites and applications https://wrap-gradient.vercel.app/ but gradients resolution is not too high.
By the way, i noticed that developer and Wiki named it as Oklab, but everybody everywhere name it as OKLAB probably because it looks prettier.
oklablch.jpg
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302
Benutzeravatar
shijan
Mitglied
Beiträge: 2107
Registriert: Mo 23 Dez 2019 13:21
Wohnort: Ukraine

Re: [Request/Idea] Oklab color model support?

Beitrag von shijan »

Another interesting color model concept - Tonal-OKLCh
https://github.com/SashimiEthan/tonal-oklch
https://tonal-oklch-com.vercel.app/

A hybrid color space pairing OKLCh's perceptual hue & chroma with CIE L*'s guaranteed WCAG contrast.
Colors at the same tone are guaranteed to have identical WCAG contrast ratios against any background — regardless of hue or chroma.
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302
Benutzeravatar
shijan
Mitglied
Beiträge: 2107
Registriert: Mo 23 Dez 2019 13:21
Wohnort: Ukraine

Re: [Request/Idea] Oklab color model support?

Beitrag von shijan »

Another OKLAB OKLCH Interactive web demo https://gamut-plane.eckelboommaikel.workers.dev/
And source https://github.com/maikeleckelboom/gamut-plane
They fit OKLAB color selection area into rectangle in very pretty way - it is operates in circle coordinates, which is placed into rectangle. Very interesting logic.
Screen Shot 2026-11-10 at 6.29.49 AM.jpg
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302