daft.expressions.expressions.ExpressionImageNamespace.encode#

ExpressionImageNamespace.encode(image_format: str | ImageFormat) daft.expressions.expressions.Expression[source]#

Encode an image column as the provided image file format, returning a binary column of encoded bytes.

Parameters

image_format – The image file format into which the images will be encoded.

Returns

A Binary expression representing a binary column of encoded image bytes.

Return type

Expression