Skip to content
  1. Examples


Ogma can render images available via HTTP/S. Images may be in PNG, JPG, and SVG format. Images are controlled by the image attribute Images can also be used within node badges as well.

When using the WebGL renderer, images must either be retrieved from the same origin, or have CORS approval. When using the canvas renderer, images from any origin can be displayed, but PNG export will not include images without CORS approval. The global option imgCrossOrigin (set through ogma.setOptions()) controls the crossOrigin attribute of the images.