contentauth / c2pa-python

Python binding for c2pa-rs library
Apache License 2.0
22 stars 6 forks source link

Sidecar Prop Option #11

Open oconpa opened 7 months ago

oconpa commented 7 months ago

Could we add the ability for the python sdk to not embed into the image but rather output the JUMPBF as a sidecar for the sign_file sdk?

original

result = c2pa.sign_file("path/to/source.jpg", "path/to/dest.jpg, manifest_json, sign_info, data_dir)

proposed

result = c2pa.sign_file("path/to/source.jpg", "path/to/dest.jpg, manifest_json, sign_info, data_dir, sidecar=Boolean)

It defaults to false and embeds, however if specified it will output a sidecar with the file name however extension is .c2pa

oconpa commented 7 months ago

In similar fashion to how the CLI does it with the -s flag https://github.com/contentauth/c2patool?tab=readme-ov-file#usage

gpeacock commented 3 weeks ago

I need to add the remote_url and no_embed options to the new Builder API. I'll do that once the rust api is updated.