This repository was archived by the owner on Dec 12, 2023. It is now read-only.
This repository was archived by the owner on Dec 12, 2023. It is now read-only.
conversion between different RGB spaces doesn't work #63
Open
Description
When I try to convert from one RGB space to another RGB space, I receive the result in the original space, not in the target space I specified:
from colormath.color_objects import sRGBColor, AdobeRGBColor
from colormath.color_conversions import convert_color
convert_color(sRGBColor(.5, .5, .5), AdobeRGBColor)
# result: sRGBColor(rgb_r=0.5,rgb_g=0.5,rgb_b=0.5)
If I go through a non-RGB space it works:
convert_color(convert_color(sRGBColor(.5, .5, .5), LabColor), AdobeRGBColor)
# result: AdobeRGBColor(rgb_r=0.49622736126049893,rgb_g=0.49622594102136347,rgb_b=0.49622822419096463)
Metadata
Metadata
Assignees
Labels
No labels