ReadonlycanvasThe canvas the image is drawn on. If the GPU is lost (the browser drops the WebGL context), the editor switches to the JS engine on a new canvas, which takes the old one's place in the page, class and style.
ReadonlyengineThe engine in use now.
ReadonlyimageThe decoded image (sRGB, full size), or null before setImage.
Decodes input (any ImageInput; a Blob is read with its EXIF
orientation) and makes it the image to correct. The last pipeline
rendered, if any, is drawn again on it.
Shows the image corrected by p. Call it on every slider move: calls are
coalesced, and only the latest pipeline is drawn. Resolves with true once
p is on the canvas, or false when a newer call superseded it.
autoStretch takes its statistics from the full-size image, so the
preview has the same range as the final result.
The full-size result of p from the exact JS engine (in workers by
default), in the output type options.output asks for, as
Pipeline.run gives it.
Stops pending work and frees the GPU memory. The editor cannot be used afterwards.
Created by createEditor.