-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add a basic DDS image plugin with tests #1650
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
Conversation
Only supports DXT1 and DXT5 for now. The pixel formats ideally should be supported in decode.c instead, but for now this is good enough. Fixes python-pillow#252
|
Should |
|
Like I was telling @wiredfool the other day, dxt1 and dxt5 should be implemented as pixel formats in But yeah the plugin I provided is meant to be a starting point. |
|
Yep, might be an idea to add that as TODOs in the code for now. Edit: Added TODOs and underscores. |
|
I filed the todo in #1652 where it won't bitrot. Consider squashing some of your commits but the code looks good. |
|
See #1654 |
This builds on PR #1644 by @jleclanche.
Add unit tests with @Metallicow's test images from #1644 (comment) ("License CC0/Public domain/PIL whatever").
I just picked the smallest of each image format.
DdsImagePlugin.py is now 97.59% covered; just four lines uncovered. They could perhaps be exercised with other test images.
Closes #1644 and fixes #252.