这是indexloc提供的服务,不要输入任何密码
Skip to content

[FEATURE]: Implement support for "slugified" colourspace names. #991

@MrLixm

Description

@MrLixm

Description

Hello,

I'm looking to insert or retrieve colour.RGB_COLORSPACES names from file names.
For example, I would like to use the ALEXA Wide Gamut colorspace into a file name which could be slugified to something like alexaWideGamut. I could also run the invert where something like colour.RGB_COLORSPACES.get("alexaWideGamut") would return me the ALEXA Wide Gamut RGB_COLORSPACE instance.

This means colour could be an alternative method (to OCIO) to convert imagery files colorspaces, where file name / metadata would provide the source colorspace name of the file.
I'm trying to answer the question How one would encode colorspace metadata in a library of imagery files that would be easily translated to a code object for conversions.
OCIO is one way to go but I would like to see how colour would behave in that role.

Some technicalities to have a look at:

  • what characters are allowed ? Do we keep dots, dashes ? Or only something like [a-zA-Z\d_]
  • does we modify literature of colorspace names, like sRGB would become srgb ?

Cheers.
Liam.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions