c2pa-rs

A fork of https://github.com/contentauth/c2pa-rs/
git clone git://archive.git.mtrnord.blog/mtrnords-photography-manager/c2pa-rs.git
Log | Files | Refs | README

commit 3d3f7ca1b807822f9ad75fa03544bda6a5fa7ebe
parent 28b6cb526bf9c3e11c3c79e8af98d40f24dbc64d
Author: Gavin  Peacock <gpeacock@adobe.com>
Date:   Tue,  2 May 2023 16:37:35 -0700

backed out calls to set_memory_thumbnail (#243)

* backed out calls to set_memory_thumbnail
This was causing thumbnail files to not be generated.
Diffstat:
Msdk/src/ingredient.rs | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sdk/src/ingredient.rs b/sdk/src/ingredient.rs @@ -483,7 +483,7 @@ impl Ingredient { { let (format, image) = Self::thumbnail_from_assertion(claim_assertion.assertion()); - self.set_memory_thumbnail(format, image)?; + self.set_thumbnail(format, image)?; } } self.active_manifest = Some(claim.label().to_string()); @@ -623,7 +623,7 @@ impl Ingredient { // create a thumbnail if we don't already have a manifest with a thumb we can use if ingredient.thumbnail.is_none() { if let Some((format, image)) = options.thumbnail(path) { - ingredient.set_memory_thumbnail(format, image)?; + ingredient.set_thumbnail(format, image)?; } } @@ -1364,7 +1364,7 @@ mod tests_file_io { #[test] #[cfg(feature = "file_io")] fn test_jpg_with_path() { - let ap = fixture_path("CIE-sig-CA.jpg"); + let ap = fixture_path("CA.jpg"); let mut folder = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")); folder.push("../target/tmp/ingredient"); let mut ingredient = Ingredient::from_file_with_folder(ap, folder).expect("from_file");