@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<C2paSdk>

      An object providing access to factory methods for creating new reader objects.

      const c2pa = await createC2pa();

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