Skip to content

Support RGBA for torchvision.io.encode_png() #6570

Open
@MichaelMonashev

Description

@MichaelMonashev

🚀 The feature

Right now torchvision.io.encode_png() can only encode RGB and GRAYSCALE images. It would be very useful to add alpha channel support for PNG images.

Motivation, pitch

It is useful for segmentation masks to be displayed, for example, in a web browser.

Alternatives

Opencv

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions