Home > c2pa > C2pa
C2pa interface
Main interface for reading c2pa data contained within an asset.
Signature: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) | Processes image data from a Blob as input |
read(file) | Processes image data from a File as input. Useful for file uploads/drag-and-drop. |
read(url) | Processes image data from a URL |
read(element) | Processes an image from an HTML image element (<img /> ). |
read(input) | Process an image given a valid input. Supported types: - Blob - File - Image URL - HTML image element (<img /> ) |
readAll(inputs) | Convenience function to process multiple images at once |