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

chore: bump c2patool version #928

Merged
merged 2 commits into from
Feb 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "c2patool"
default-run = "c2patool"
version = "0.13.3"
version = "0.14.0"
description = "Tool for displaying and creating C2PA manifests."
authors = [
"Gavin Peacock <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/asset_handlers/jpeg_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,10 +618,10 @@
None
}
})
.unwrap_or_else(|| (None, MIN_XMP));
.unwrap_or((None, MIN_XMP));

Check warning on line 621 in sdk/src/asset_handlers/jpeg_io.rs

View check run for this annotation

Codecov / codecov/patch

sdk/src/asset_handlers/jpeg_io.rs#L621

Added line #L621 was not covered by tests

// add provenance and JPEG XMP prefix
let xmp = format!("{XMP_SIGNATURE}\0 {}", add_provenance(&xmp, &manifest_uri)?);
let xmp = format!("{XMP_SIGNATURE}\0 {}", add_provenance(xmp, &manifest_uri)?);

Check warning on line 624 in sdk/src/asset_handlers/jpeg_io.rs

View check run for this annotation

Codecov / codecov/patch

sdk/src/asset_handlers/jpeg_io.rs#L624

Added line #L624 was not covered by tests
let segment = JpegSegment::new_with_contents(markers::APP1, Bytes::from(xmp));
// insert or add the segment
match xmp_index {
Expand Down
Loading