Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create c2pa_read_file C function #1

Open
dkozma opened this issue Oct 30, 2023 · 3 comments
Open

Create c2pa_read_file C function #1

dkozma opened this issue Oct 30, 2023 · 3 comments

Comments

@dkozma
Copy link

dkozma commented Oct 30, 2023

This function takes:

  • a path containing the file to read and verify C2PA data from
  • an optional directory to write any binary assets to (e.g. thumbnails to)

And outputs:

  • a JSON string containing the manifest data (similar to c2patool)
  • optionally writes binary assets in the manifest to a directory

Errors can be inspected in C via calling c2pa_error().

@dkozma dkozma changed the title Create c2pa_read_from_file C function Create c2pa_read_file C function Oct 30, 2023
@dkozma
Copy link
Author

dkozma commented Oct 30, 2023

Outstanding questions:

  • Is error reporting correct? Should we have more programmatically useful error messages?
  • Should we pass in an options parameter instead instead of an optional file path as a second parameter?

@github-jira-sync-bot
Copy link

✅ Jira issue https://jira.corp.adobe.com/browse/CAI-5021 is successfully created for this GitHub issue.

@github-jira-sync-bot
Copy link

❌ Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/CAI-5021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants