@contentauth/c2pa-web 0.15.1 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/{c2pa-DIv7lJlp.js → c2pa-DdK7nuOh.js} +318 -286
- package/dist/index.js +1 -1
- package/dist/inline.js +5 -5
- package/dist/lib/reader.d.ts +7 -3
- package/dist/lib/reader.d.ts.map +1 -1
- package/dist/resources/c2pa_bg.wasm +0 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -136,6 +136,9 @@ await reader.free();
|
|
|
136
136
|
|
|
137
137
|
`Reader.fromBlob` rejects assets larger than 1 GB, throwing `AssetTooLargeError`. `Reader.fromBlobFragment` reject assets where any fragment is larger than 1 GB, also throwing `AssetTooLargeError`.
|
|
138
138
|
|
|
139
|
+
> [!WARNING]
|
|
140
|
+
> `Reader.fromBlob`'s `format` argument (typically `blob.type`) is optional. If it's omitted or empty, the native library falls back to detecting the format from the asset's bytes. **This is not a feature to lean on.** Always supply `format` when it's known, as byte-based detection is slower than a direct lookup and can be unreliable, which could surface as more confusing errors later on. Only omit it when the caller has no way to determine the asset's format. `Reader.fromBlobFragment` and the `Builder` API always require an explicit format.
|
|
141
|
+
|
|
139
142
|
### Building C2PA manifests with ingredients
|
|
140
143
|
|
|
141
144
|
Use the `Builder` API to create C2PA manifests and add ingredients (source assets) to document the provenance chain.
|