Skip to main content

c2pa.c2pa.read_2

Home > c2pa > C2pa > read

C2pa.read() method

Processes image data from a URL

Signature:
read(url: string, options?: C2paReadOptions): Promise<C2paReadResult>;

Parameters

ParameterTypeDescription
urlstringThe URL of the image to process
optionsC2paReadOptions(Optional)
Returns:

Promise<C2paReadResult>

Remarks

Note: The file referenced by the URL must either be have the same origin as the site referencing this code, or it needs to have CORS enabled on the resource.