Skip to content

Provide generic decode/read image io functions #2686

Closed
@vfdev-5

Description

@vfdev-5

🚀 Feature

Currently, torchvision.io.image module provides read_png/jpeg and decode_png/jpeg separate functions to read and decode images from files. They are not and will not be exposed publicly and the idea is to provide two generic methods like
read and decode in order to handle both formats (png and jpeg): call internally read_png or read_jpeg

Maybe, we can inspire of how does the libraries like PIL to dispatch according to the input image format.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions