-
Notifications
You must be signed in to change notification settings - Fork 21
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
Make Palette handle greyscale #3
Comments
I noticed this! As a (temporary?) workaround, I'm currently converting my grayscale image to RGB before dithering it. |
Ah, of course. That should work; feels somewhat dirty though. |
I was working on a unrelated project. Honestly, I think converting to
I don't think it's the code's responsibility to handle the conversion for the user, but if the user passes an Image type not in RGB mode or sequences of non-3 length, an exception should probably be raised. |
if image.mode !=' RGB':
image.convert('RGB') It not very harsh with regards to responsibility. |
Currently grayscale and BW images does not work very well att all with the palette object. Needs to be implemented.
The text was updated successfully, but these errors were encountered: