contentauth / c2patool

Command line tool for displaying and adding C2PA manifests
Apache License 2.0
94 stars 30 forks source link

Is it possible to generate a manifest with two or more ingredients? #122

Open MaartenPauwels opened 1 year ago

MaartenPauwels commented 1 year ago

I know you can create an ingredient report with : "c2patool sample/C.jpg --ingredient --output ./ingredient" and you can give a parent to a manifest with the --parent / -p option but is it possible to create a manifest that has multiple ingredients and create not just a chain of custody but an actual tree which could then be displayed with the --tree option?

Thank you in advance!

gpeacock commented 1 year ago

You can now reference the path to the folder or folder/ingredient.json created with --ingredient, in the ingredients field and the --parent parameters. you can create a complex manifest using a combination of ingredients and parents. If those ingredients already contain manifest stores, they will be brought in as .c2pa files referenced via the manifest_data field. So you can create complex trees. Any file with an existing manifest store, can be referenced as an ingredient, bringing with it all the associated manifests.