Skip to main content

c2pa.c2pa

Home > c2pa > C2pa

C2pa interface

Main interface for reading c2pa data contained within an asset.

Signature:
export interface C2pa 

Properties

PropertyModifiersTypeDescription
dispose() => voidDisposer function to clean up the underlying worker pool and any other disposable resources

Methods

MethodDescription
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