Creates a new instance of c2pa-web by setting up a web worker and preparing a WASM binary.
const c2pa = await createC2pa({ wasmSrc: 'url/hosting/wasm/binary' });const reader = await c2pa.reader.fromBlob(imageBlob.type, imageBlob); Copy
const c2pa = await createC2pa({ wasmSrc: 'url/hosting/wasm/binary' });const reader = await c2pa.reader.fromBlob(imageBlob.type, imageBlob);
SDK configuration object.
An object providing access to factory methods for creating new reader objects.
Creates a new instance of c2pa-web by setting up a web worker and preparing a WASM binary.
Example: Creating a new SDK instance and reader: