Skip to main content

c2pa

Home > c2pa

c2pa package

Functions

FunctionDescription
createC2pa(config)Creates a c2pa object that can be used to read c2pa metadata from an image.
createL2Manifest(manifest)Creates a manifest representation suitable for use with c2pa-wc.
generateVerifyUrl(assetUrl)Generates a URL that pre-loads the assetUrl into the Content Authenticity Verify site for deeper inspection by users.
selectEditsAndActivity(manifest, locale, iconVariant)Gets a list of categorized actions, derived from the provided manifest's c2pa.action assertion and a dictionary assertion, if available. If a dictionary is incuded, this function will initiate an HTTP request to fetch the dictionary data.
selectProducer(manifest)Gets the producer of this manifest, derived from its stds.schema-org.CreativeWork assertion, if available
selectSocialAccounts(manifest)Gets any social accounts associated with the producer of this manifest, derived from its stds.schema-org.CreativeWork assertion, if available

Interfaces

InterfaceDescription
AssertionAccessor
BlobUrlData
C2paMain interface for reading c2pa data contained within an asset.
C2paConfig
C2paReadResult
DownloaderOptions
ExtendedAssertions
Ingredient
L2ClaimGenerator
L2EditsAndActivity
L2Ingredient
L2Manifest
L2Producer
L2Signature
L2SocialAccount
Manifest
ManifestMap
ManifestStore
Source
SourceMetadata
Thumbnail
TranslatedDictionaryCategory

Type Aliases

Type AliasDescription
C2paSourceType
DisposableBlobUrl
DisposableL2Manifest
IconVariant