@contentauth/c2pa-js
    Preparing search index...
    • Creates a new instance of c2pa-web by setting up a web worker and preparing a WASM binary.

      This is the "inline" version which compiles the WASM binary from an inlined, base64-encoded string.

      Parameters

      Returns Promise<C2pa>

      A handle to the running worker, to be passed to Reader/Builder's static methods.

      const c2pa = await createC2pa();

      const reader = await Reader.fromBlob(c2pa, imageBlob.type, imageBlob);