Image Loader Element API
Image loader element has all common element properties + plus some specific properties.
Default middleware
Default middleware for Image loader element will set the source of the image to the URL that was sent to the template.
Methods
setSource(url)
url
string
Method sets the source of the Image loader element.
Action example
imageLoaderElement.setSource("file:///C:/logos-repository/logo.png");
URL of the image must be valid and accessible from the same machine that is running the template. Read more about File URI scheme.
caution
When providing an image URL to CasparCG, please use a forward slash (/) instead of a backslash (\). The use of a backslash may result in a broken file path and prevent the image from loading correctly.