There is now an (experimental) library for ICC profiles for plan 9! Plus a few small tools that make use of it.

No system integration yet, but the interface is small enough.

https://shithub.us/sirjofri/libicc/HEAD/info.html

Tested with two sRGB profiles that use the LAB space. XYZ profiles need a bit of work still. Theoretically, CMYK and other spaces should also work, but I can't deal with that data currently.

There are probably bugs, but it's a start.

#plan9 #9front #cielab #ciexyz
shithub: libicc

@sirjofri OOOH!

This is great, I can use this for pdffs! We'll probably want this in the base system for that purpose SoonTM tbh

@sirjofri libicc+pdffs + revamped printing infrastructure could be super nice
@pixx
I wouldn't be against it!

Though someone should review the code, especially the clut interpolation, and the XYZ routines need to be implemented.

Tbh I'd even want it in the kernel (memdraw?), like a /dev/icc and /dev/whitepoint file, that allows color conversion to the output device, and adjusting the color temperature to the surrounding. The latter could then be coupled with brightness sensors or something. Though having it per-window could be better. Maybe both, I don't know
@sirjofri Hmm, maybe, this is definitely a mailing list, #cat-v, or jitsi discussion IMO. I'd want input from cinap and rodri at minimum, preferably more..;.
@pixx
Yeah, definitely. I wrote a mail to the 9fans list today, and I'll follow up when there's more stability and feature completeness