Skip to content

ImageReadMode should support strings #8625

@NicolasHug

Description

@NicolasHug

It's pretty inconvenient to have to import ImageReadMode just to ask decode_* for an RGB image. We should just allow strings as well.

Also, RGBA should be a valid option (like in PIL). RGB_ALPHA is... long.

Metadata

Metadata

Assignees

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