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)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