Skip to main content

c2pa.c2pa.read_3

Home > c2pa > C2pa > read

C2pa.read() method

Processes an image from an HTML image element (<img />).

Signature:
read(element: HTMLImageElement, options?: C2paReadOptions): Promise<C2paReadResult>;

Parameters

ParameterTypeDescription
elementHTMLImageElementDOM element of the image to process
optionsC2paReadOptions(Optional)
Returns:

Promise<C2paReadResult>

Remarks

This is useful if you want to process the image returned by a document.querySelector call