Creates an editor that shows corrections as fast as the browser allows.
const editor = createEditor({ canvas: document.querySelector('canvas')! });await editor.setImage(file);slider.oninput = () => editor.render(pipeline().exposure(Number(slider.value)));save.onclick = async () => download(await editor.export(current(), { output: 'blob' })); Copy
const editor = createEditor({ canvas: document.querySelector('canvas')! });await editor.setImage(file);slider.oninput = () => editor.render(pipeline().exposure(Number(slider.value)));save.onclick = async () => download(await editor.export(current(), { output: 'blob' }));
Creates an editor that shows corrections as fast as the browser allows.