ImageEncoded

An image encoded as e.g. a JPEG or PNG.

Rerun also supports uncompressed images with the archetypes.Image.

Components components

Required: Blob

Recommended: MediaType

Optional: Opacity, DrawOrder

Shown in shown-in

Example example

image_encoded imageencoded

"""Create and log an image."""

from pathlib import Path

import rerun as rr

image_file_path = Path(__file__).parent / "ferris.png"

rr.init("rerun_example_image_encoded", spawn=True)

rr.log("image", rr.ImageEncoded(path=image_file_path))