From b90dd4b2f8d615f950a0c70c093e24568616274c Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Fri, 6 Dec 2024 18:15:10 +0100 Subject: [PATCH] ThumbnailAssertion: Use two underscores for suffixes This is contradicting what the specification says, but consistent with the implementation in c2pa-rs. According to a CAI Discord conversation, the specification is wrong in this case. --- .changeset/eighty-olives-count.md | 5 +++++ src/manifest/assertions/ThumbnailAssertion.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/eighty-olives-count.md diff --git a/.changeset/eighty-olives-count.md b/.changeset/eighty-olives-count.md new file mode 100644 index 0000000..1a77354 --- /dev/null +++ b/.changeset/eighty-olives-count.md @@ -0,0 +1,5 @@ +--- +'@trustnxt/c2pa-ts': patch +--- + +Use two underscores for ingredient thumbnail assertion suffix diff --git a/src/manifest/assertions/ThumbnailAssertion.ts b/src/manifest/assertions/ThumbnailAssertion.ts index 1f0ba60..3fecfb7 100644 --- a/src/manifest/assertions/ThumbnailAssertion.ts +++ b/src/manifest/assertions/ThumbnailAssertion.ts @@ -100,7 +100,7 @@ export class ThumbnailAssertion extends Assertion { assertion.label = AssertionLabels.thumbnailPrefix + imageType; } else { assertion.label = - AssertionLabels.ingredientThumbnailPrefix + (suffix ? '_' + suffix : '') + '.' + imageType; + AssertionLabels.ingredientThumbnailPrefix + (suffix ? '__' + suffix : '') + '.' + imageType; } return assertion; }