You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Import the C2PA module as follows:
22
22
import c2pa-python as c2pa
23
23
```
24
24
25
-
### Reading and validating C2PA data in a file
25
+
### Read and validate C2PA data in a file
26
26
27
27
Use the `verify_from_file_json` function to read C2PA data from the specified file:
28
28
@@ -38,9 +38,9 @@ If the optional `data_dir` is provided, the function extracts any binary resourc
38
38
39
39
NOTE: For a comprehensive reference to the JSON manifest structure, see the [CAI manifest store reference](https://contentauth.github.io/json-manifest-reference/manifest-reference).
40
40
41
-
### Adding a signed manifest to a media file
41
+
### Add a signed manifest to a media file
42
42
43
-
The `add_manifest_to_file_json` function adds a signed manifest to a media file.
43
+
Use the `add_manifest_to_file_json` function to add a signed manifest to a media file.
44
44
45
45
```py
46
46
result = c2pa.add_manifest_to_file_json("path/to/source.jpg",
@@ -51,11 +51,11 @@ result = c2pa.add_manifest_to_file_json("path/to/source.jpg",
51
51
```
52
52
53
53
The parameters (in order) are:
54
-
- The source media file that will receive new C2PA data.
54
+
- The source (original) media file.
55
55
- The destination file that will contain a copy of the source file with the manifest data added.
56
56
-`manifest_json`, a JSON-formatted string containing the manifest data you want to add; see [Creating a manifest JSON definition file](#creating-a-manifest-json-definition-file) below.
57
57
-`sign_info`, a `SignerInfo` object instance; see [Generating SignerInfo](#generating-signerinfo) below.
58
-
-The optional `data_dir`enables you to load resource files referenced from `manifest_json` identifiers. When building your manifest, any files referenced by identifier fields are loaded relative to this path. This enables you to load thumbnails, icons, and manifest data for ingredients.
58
+
-`data_dir`optionally specifies a directory path from which to load resource files referenced in the manifest JSON identifier fields; for example, thumbnails, icons, and manifest data for ingredients.
0 commit comments