Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
  • PyFlink DataFrame
  • PyFlink Multimodal
    • Image
    • Video
    • Utilities
  • PyFlink DataStream
  • PyFlink Common

pyflink.multimodal.codec.image_array_to_pil_compatible#

image_array_to_pil_compatible(pixel_array)[source]#

Convert ndarray pixels to a PIL Image, normalizing only when required.

Pillow cannot operate directly on high-precision multichannel arrays. This helper preserves natively supported modes and falls back to the uint8 mode with the same channel count for PIL-only transforms.

previous

pyflink.multimodal.codec.image_array_to_pil

next

pyflink.multimodal.codec.normalize_image_format

Show Source

Created using Sphinx 4.5.0.