Skip to content

Convert to HSV if mode is HSV in getcolor()#7226

Merged
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:getcolor
Jun 30, 2023
Merged

Convert to HSV if mode is HSV in getcolor()#7226
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:getcolor

Conversation

@radarhere
Copy link
Member

Resolves #7225

Currently, ImageColor.getcolor() returns RGB values for all modes... except for 1, L, LA, La, I and F, when it returns a single value.

This PR adds another exception for the HSV mode, so that HSV values are returned in that case.

@hugovk hugovk merged commit 9abef1a into python-pillow:main Jun 30, 2023
@radarhere radarhere deleted the getcolor branch June 30, 2023 06:50
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.

Wrong color conversion from HSV string

2 participants