browser-image
    Preparing search index...
    • 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.

      Type Parameters

      Parameters

      • Optionaloptions: O

      Returns PreviewRunner<O>

      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