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.
Optional
SDK configuration object.
A handle to the running worker, to be passed to Reader/Builder's static methods.
Reader
Builder
const c2pa = await createC2pa();const reader = await Reader.fromBlob(c2pa, imageBlob.type, imageBlob); Copy
const c2pa = await createC2pa();const reader = await Reader.fromBlob(c2pa, imageBlob.type, imageBlob);
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.