daft.Expression.image.decode#
- Expression.image.decode(on_error: Union[Literal['raise'], Literal['null']] = 'raise') Expression [source]#
Decodes the binary data in this column into images.
This can only be applied to binary columns that contain encoded images (e.g. PNG, JPEG, etc.)
- Parameters:
on_error – Whether to raise when encountering an error, or log a warning and return a null
- Returns:
An Image expression represnting an image column.
- Return type:
Expression