-
Notifications
You must be signed in to change notification settings - Fork 9
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
Preserving transparent pixels in image sort. #5
Comments
Hmmm, I haven't looked at this codebase in a while, but based on a cursory look just now a lot of the codebase assumes the image data is in (R,G,B) tuples — specifically all the sorting functions and "key" functions. it might be as simple as loading the image from PIL w/ a different mode in |
Thanks for the response! After looking into this, the app is correctly detecting the image mode input (RGBA), but there was this pesky check in if img.mode != "RGB" and not gif:
img = img.convert(mode="RGB") After commenting this out, the alpha pixels are preserved in the output. |
Great app! I've been using it to generate some artwork using .png input images that have transparent backgrounds. Whenever I run those images through the application, the transparent pixels output black. Is there any way to preserve the transparent pixels in the original image so that they are also present in the output?
The text was updated successfully, but these errors were encountered: