Remote images

Set Image.src to an HTTPS URL to display an image. Use read<Texture> when you want to work with its pixels. This example shows the same photo directly and after a grayscale filter. Edit Image URL to try another bitmap.

Loading Ebi…
let url = reflect("https://upload.wikimedia.org/wikipedia/commons/thumb/9/97/The_Earth_seen_from_Apollo_17.jpg/330px-The_Earth_seen_from_Apollo_17.jpg",
    label="Image URL")
let photo = read<Texture>(url)

<Image src={url} width={170pt} height={170pt} fit="cover" rounded-lg position={[-100pt,0pt]}/>
<Image src={photo.grayscale()} width={170pt} height={170pt} fit="cover" rounded-lg position={[100pt,0pt]}/>
wait(3s)

Use a direct bitmap URL from a server that allows cross-origin requests through CORS. NASA Apollo 17 photo

For a local asset, use a path relative to the Ebi file, such as read<Texture>("images/earth.jpg"). Use Image sizing and styling to set the crop, opacity, or border.