DXT3 images are read in RGBA mode by radarhere · Pull Request #8817 · python-pillow/Pillow
Navigation Menu
{{ message }}
python-pillow / Pillow Public
- Notifications You must be signed in to change notification settings
- Fork 2.4k
Merged
DXT3 images are read in RGBA mode#8817
hugovk merged 1 commit intopython-pillow:mainfrom
DXT3 images are read in RGBA mode#8817
hugovk merged 1 commit intopython-pillow:mainfrom
Conversation
Copy link Copy Markdown
Member
https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html#dds
Added in version 3.4.0: DXT3 images can be read in RGB mode
This is incorrect. DXT3 images are read in RGBA mode
Pillow/src/PIL/DdsImagePlugin.py
Lines 390 to 391 in 5efcaa4
| elif fourcc == D3DFMT.DXT3: | |
| self._mode = "RGBA" |
Lines 68 to 72 in 5efcaa4
| with Image.open(TEST_FILE_DXT3) as im: | |
| im.load() | |
| assert im.format == "DDS" | |
| assert im.mode == "RGBA" |
This has been the case since #2068
radarhere
added
the
Documentation
label
radarhere
deleted the
typo
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment