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

c2patool --sidecar does not work in 0.10.2 #830

Open
eeeps opened this issue Jan 9, 2025 · 3 comments
Open

c2patool --sidecar does not work in 0.10.2 #830

eeeps opened this issue Jan 9, 2025 · 3 comments
Assignees
Labels
accepted bug Something isn't working c2patool Issues related to c2patool cli

Comments

@eeeps
Copy link

eeeps commented Jan 9, 2025

sidecar-cmd.sh: https://gist.github.com/eeeps/2b5c907a560ec5372997c3e62ceac0d1
manifest.json: https://gist.github.com/eeeps/7768715f05e0e426ea1f3098e82b12c3
photographs-of-snowmen-13.jpg: https://o.img.rodeo/photographs-of-snowmen-13.jpg
photographs-of-snowmen-13-optimized.jpg: https://o.img.rodeo/photographs-of-snowmen-13-optimized.jpg
(not gonna include mycerts.pem or mykey.pem 😌)

Running sidecar-cmd.sh on c2patool 0.7.0 generates photographs-of-snowmen-13-signed.c2pa, and copies photographs-of-snowmen-13-optimized.jpg to photographs-of-snowmen-13-signed.jpg unmodified, as expected.

Running these same commands on these same files using the latest version of c2patool (0.10.2) puts the following on stdout:

claim generator [ClaimGeneratorInfo { name: "c2patool", version: Some("0.10.2"), icon: None, other: {} }]
Error: No claim found

And does not generate a sidecar .c2pa file. Additionally, it ouputs a file to disc named xmp/iid/191d9470-cf46-4511-b4f9-820f9ce7ea4b which is a JPEG, that mysteriously weighs 32KB more than the input JPEG.

Seems related to #831

@crandmck
Copy link
Collaborator

I get a slightly different error:

$c2patool sample/image.jpg -m sample/test.json -p sample/C.jpg -o signed_image.jpg --sidecar
claim generator [ClaimGeneratorInfo { name: "c2patool", version: Some("0.10.2"), icon: None, other: {} }]
Error: embedding manifest

Caused by:
    COSE Signature too big for JUMBF box

@crandmck crandmck added accepted bug Something isn't working labels Jan 10, 2025
@github-jira-sync-bot
Copy link

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

@gpeacock gpeacock self-assigned this Jan 13, 2025
@gpeacock gpeacock added the c2patool Issues related to c2patool cli label Jan 17, 2025
@nitrat7
Copy link

nitrat7 commented Jan 23, 2025

I can confirm, same for mp4-files.

last working version was 0.9.6.

Does not work either in version 0.11.1

➜  sample git:(main) ✗ ./c2patool_0111 image.jpg -s -m test.json -o image_signed.jpg
claim generator [ClaimGeneratorInfo { name: "c2patool", version: Some("0.11.1"), icon: None, other: {} }]
Error: embedding manifest

Caused by:
    COSE Signature too big for JUMBF box

or with mp4-file

➜  sample git:(main) ✗ ./c2patool_0111 input.mp4 -s -m test.json -o output.mp4 
claim generator [ClaimGeneratorInfo { name: "c2patool", version: Some("0.11.1"), icon: None, other: {} }]
Error: embedding manifest

Caused by:
    COSE Signature too big for JUMBF box

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted bug Something isn't working c2patool Issues related to c2patool cli
Projects
None yet
Development

No branches or pull requests

5 participants