Skip to content

BGR;[15,16,34,32] modes are documented but not part of ImageMode #5933

@FirefoxMetzger

Description

@FirefoxMetzger

I found a few image modes that are listed as partially supported in the docs (here), but that are not listed in ImageMode:

from PIL import ImageMode

# note: I'm using the private variable here because it supports `in`
# and leads to nicer code
# afaik correct access is done via ImageMode.getmode(mode)

assert "BGR;15" in ImageMode._modes
assert "BGR;16" in ImageMode._modes
assert "BGR;24" in ImageMode._modes
assert "BGR;32" in ImageMode._modes

Is there any reason why these have not been added? If not, would a PR adding those be welcome?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions