Closed
Description
🚀 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.