Skip to content

Set and get the srgb colorspace from the output encoding. Due to deprecated outputEncoding#384

Open
danrossi wants to merge 3 commits into
protectwise:mainfrom
danrossi:linearencoding-fix
Open

Set and get the srgb colorspace from the output encoding. Due to deprecated outputEncoding#384
danrossi wants to merge 3 commits into
protectwise:mainfrom
danrossi:linearencoding-fix

Conversation

@danrossi

@danrossi danrossi commented Jun 5, 2026

Copy link
Copy Markdown

Related: #267 #318

Due to the deprecated outputEncoding setter in three and a non existing export LinearEncoding.
This fix sets and gets the srgb outputColorSpace from the output encoding for backwards compatibility. This also sets a default outputColorSpace to Linear sgb.

Constants from three are included to prevent any further breaking change. I've imported the srgb colorspace constants from three which have been there for quite a few years now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant