For slider previews: each call supersedes the previous one. The last decoded (and, with maxSize, shrunk) input is reused while the same input object is passed again.
maxSize
Optional
const preview = createPreviewRunner({ maxSize: 1280 });slider.oninput = async () => show(await preview.run(current(), img));slider.onchange = async () => show(await current().run(img)); // full size on release Copy
const preview = createPreviewRunner({ maxSize: 1280 });slider.oninput = async () => show(await preview.run(current(), img));slider.onchange = async () => show(await current().run(img)); // full size on release
For slider previews: each call supersedes the previous one. The last decoded (and, with
maxSize, shrunk) input is reused while the same input object is passed again.