Skip to content

Adding function to convert from sRGB to OkLCH and back #83679

Merged
rschu1ze merged 17 commits intoClickHouse:masterfrom
Fgrtue:master
Jul 16, 2025
Merged

Adding function to convert from sRGB to OkLCH and back #83679
rschu1ze merged 17 commits intoClickHouse:masterfrom
Fgrtue:master

Conversation

@Fgrtue
Copy link
Copy Markdown
Contributor

@Fgrtue Fgrtue commented Jul 13, 2025

Closes: #80054

Changelog category (leave one):

  • New Feature

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Added SQL functions colorSRGBToOkLCH and colorOkLCHToSRGB for converting colours between the sRGB and OkLCH colour spaces.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jul 13, 2025

CLA assistant check
All committers have signed the CLA.

@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Jul 13, 2025
@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Jul 13, 2025

Workflow [PR], commit [864e33b]

Summary:

@clickhouse-gh clickhouse-gh bot added the pr-feature Pull request with new product feature label Jul 13, 2025
Copy link
Copy Markdown
Member

@alexey-milovidov alexey-milovidov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really great!

Interesting if we have to round results in the test reference (e.g., to three digits after decimal point), as there could be slight differences between aarch64 and x86_64.

@alexey-milovidov alexey-milovidov self-assigned this Jul 13, 2025
Fgrtue

This comment was marked as resolved.

@rschu1ze rschu1ze added this pull request to the merge queue Jul 16, 2025
Merged via the queue into ClickHouse:master with commit c633f75 Jul 16, 2025
322 of 385 checks passed
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-feature Pull request with new product feature pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Functions for conversions between color spaces

6 participants