Skip to content

Rename IMAGING_TYPE_SPECIAL to IMAGING_TYPE_I16 - #9794

Merged
hugovk merged 2 commits into
python-pillow:mainfrom
radarhere:special
Aug 30, 2026
Merged

Rename IMAGING_TYPE_SPECIAL to IMAGING_TYPE_I16#9794
hugovk merged 2 commits into
python-pillow:mainfrom
radarhere:special

Conversation

@radarhere

Copy link
Copy Markdown
Member

Since #9053 removed BGR;15, BGR;16 and BGR;24, the only IMAGING_TYPE_SPECIAL modes left are I;16 modes.

} else if (isModeI16(mode)) {
/* EXPERIMENTAL */
/* 16-bit raw integer images */
im->bands = 1;
im->pixelsize = 2;
im->type = IMAGING_TYPE_SPECIAL;

Perhaps it would be clearer to rename IMAGING_TYPE_SPECIAL to IMAGING_TYPE_I16?

@akx akx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good clarification!

@hugovk
hugovk merged commit 12f88ed into python-pillow:main Aug 30, 2026
92 of 94 checks passed
@radarhere
radarhere deleted the special branch August 31, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants