Skip to content

Remove unused HSV and LAB matrix conversion from C#9724

Open
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:matrix
Open

Remove unused HSV and LAB matrix conversion from C#9724
radarhere wants to merge 1 commit into
python-pillow:mainfrom
radarhere:matrix

Conversation

@radarhere

Copy link
Copy Markdown
Member

The only place that Python attempts to convert a matrix is

Pillow/src/PIL/Image.py

Lines 1079 to 1082 in 6a8de89

if mode not in ("L", "RGB"):
msg = "illegal conversion"
raise ValueError(msg)
im = self.im.convert_matrix(mode, matrix)

So HSV and LAB images will never be sent to the C layer.

@radarhere radarhere changed the title Remove support for HSV and LAB matrix conversion from C Remove unused HSV and LAB matrix conversion from C Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant