Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 30, 2023

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