c2pa.c2pa.read_3
C2pa.read() method
Processes an image from an HTML image element (<img />
).
read(element: HTMLImageElement): Promise<C2paReadResult>;
Parameters
Parameter | Type | Description |
---|---|---|
element | HTMLImageElement | DOM element of the image to process |
Promise<C2paReadResult>
Remarks
This is useful if you want to process the image returned by a document.querySelector
call