Draws an image from a URL, a file path or a Buffer.
Buffer
Remote sources are fetched during the render, so a paged render shares one cache across pages and loads a repeated source once.
Image({ src: 'https://example.com/avatar.png', width: 64, height: 64, objectFit: 'cover', borderRadius: 32, httpOptions: { headers: { Authorization: 'Bearer …' } },}) Copy
Image({ src: 'https://example.com/avatar.png', width: 64, height: 64, objectFit: 'cover', borderRadius: 32, httpOptions: { headers: { Authorization: 'Bearer …' } },})
Draws an image from a URL, a file path or a
Buffer.Remote sources are fetched during the render, so a paged render shares one cache across pages and loads a repeated source once.