We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Called PIL.Image.Image.convert(mode='LAB') for an RGB image
img = PIL.Image.open('filename.png').convert(mode='LAB')
Conversion of data to LAB colourspace.
ValueError: conversion from RGB to LAB not supported
The following code did work:
rgb_lab_transform = PIL.ImageCms.buildTransformFromOpenProfiles(PIL.ImageCms.createProfile('sRGB'), PIL.ImageCms.createProfile('LAB'), 'RGB', 'LAB') img = PIL.ImageCms.applyTransform(Image.open('filename.png').convert(mode='RGB'), rgb_lab_transform)
The text was updated successfully, but these errors were encountered:
I've created PR #6647 to resolve this.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What did you do?
Called PIL.Image.Image.convert(mode='LAB') for an RGB image
What did you expect to happen?
Conversion of data to LAB colourspace.
What actually happened?
ValueError: conversion from RGB to LAB not supported
The following code did work:
What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: