c2pa.c2pa
C2pa interface
Main interface for reading c2pa data contained within an asset.
Signature:export interface C2pa
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
dispose | () => void | Disposer function to clean up the underlying worker pool and any other disposable resources |
Methods
Method | Description |
---|---|
read(blob, options) | Processes image data from a Blob as input |
read(file, options) | Processes image data from a File as input. Useful for file uploads/drag-and-drop. |
read(url, options) | Processes image data from a URL |
read(element, options) | Processes an image from an HTML image element (<img /> ). |
read(input, options) | Process an image given a valid input. Supported types: - Blob - File - Image URL - HTML image element (<img /> ) |
readAll(inputs, options) | Convenience function to process multiple images at once |