Set color table fourth channel to zero for 1 and L mode when saving BMP by radarhere · Pull Request #8889 · python-pillow/Pillow
Navigation Menu
{{ message }}
python-pillow / Pillow Public
- Notifications You must be signed in to change notification settings
- Fork 2.4k
Merged
Set color table fourth channel to zero for 1 and L mode when saving BMP#8889
hugovk merged 1 commit intopython-pillow:mainfrom
Set color table fourth channel to zero for 1 and L mode when saving BMP#8889
hugovk merged 1 commit intopython-pillow:mainfrom
Conversation
Copy link Copy Markdown
Member
Resolves #8888
https://www.ece.ualberta.ca/~elliott/ee552/studentAppNotes/2003_w/misc/bmp_file_format/bmp_file_format.htm states that the fourth channel in a BMP color table is 'unused (=0)'.
It seems reasonable to do so when saving 1 and L mode BMPs, and makes more intuitive sense than our current strategy of setting the fourth channel to the same value as the other three.
radarhere
mentioned this pull request
radarhere
deleted the
bmp
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