tf.io.decode_image

Function for decode_bmp, decode_gif, decode_jpeg, and decode_png.

Used in the notebooks

Used in the tutorials

Detects whether an image is a BMP, GIF, JPEG, or PNG, and performs the appropriate operation to convert the input bytes string into a Tensor of type dtype.

contents 0-D string. The encoded image bytes.
channels An optional int. Defaults to 0. Number