Player input from image
Supports the same mime-types as img.src
Be aware about image resolution. Huge images (like 4K UHD and more) may cause out of memory application crash. In this case scale or crop the image before processing.
Creates Image input from the given Url
const photo = new Image("https://placekitten.com/200/300") Copy
const photo = new Image("https://placekitten.com/200/300")
Creates Image input from the given Blob
const file = $("#file-input").files[0] // File is subclass of Blobconst photo = new Image(file) Copy
const file = $("#file-input").files[0] // File is subclass of Blobconst photo = new Image(file)
Player input from image
Supports the same mime-types as img.src
Be aware about image resolution. Huge images (like 4K UHD and more) may cause out of memory application crash. In this case scale or crop the image before processing.