pyflink.multimodal.codec.decode_image#
- decode_image(image_bytes, mode=None, max_pixels=None)[source]#
Decode encoded image bytes into a decoded
Image.When
modeisNone, Pillow modes that cannot be represented directly by the built-in Image type are converted to RGB/RGBA using Pillow’s conversion rules. Explicit 8-bit/16-bit target conversions use linear scaling:uint16 // 257when reducing to 8-bit anduint8 * 257when expanding toL16.