Commit b14e552a9 for imagemagick.org

commit b14e552a910a0503da7171cf0e944b72fb3151e5
Author: Cristy <urban-warrior@imagemagick.org>
Date:   Sun Aug 30 10:31:20 2026 -0400

    add new exception for required manifest

diff --git a/coders/c2pa.c b/coders/c2pa.c
index 49405aeb7..cc0654483 100644
--- a/coders/c2pa.c
+++ b/coders/c2pa.c
@@ -75,7 +75,11 @@ static MagickBooleanType
 %                                                                             %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
-%  ReadC2PAImage returns the rendered clip path associated with the image.
+% ReadC2PAImage() reads an image that is signed with C2PA content
+%  credentials.  The image is handed to the c2pa:decode delegate which
+%  validates the manifest and returns an image ImageMagick natively
+%  understands.  It allocates the memory necessary for the new Image structure
+%  and returns a pointer to the new image.
 %
 %  The format of the ReadC2PAImage method is:
 %
@@ -243,8 +247,12 @@ ModuleExport void UnregisterC2PAImage(void)
 %                                                                             %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
-%  WriteC2PAImage() writes an image of clip bytes to a file.  It consists of
-%  data from the clip mask of the image.
+%  WriteC2PAImage() writes an image and signs it with C2PA content
+%  credentials.  The image is first written to a temporary file in a format
+%  the C2PA delegate understands (see the c2pa:format define, PNG by default)
+%  and is then handed to the c2pa:encode delegate for signing.  The signed
+%  bytes the delegate returns in %o are copied verbatim to the destination so
+%  the manifest and its signature remain intact.
 %
 %  The format of the WriteC2PAImage method is:
 %
diff --git a/config/english.xml b/config/english.xml
index f8453ace9..5f28c6704 100644
--- a/config/english.xml
+++ b/config/english.xml
@@ -709,6 +709,9 @@
         <message name="MissingOutputFilename">
           missing output filename
         </message>
+        <message name="MustSpecifyImageManifest">
+          must specify an image manifest
+        </message>
         <message name="MustSpecifyAnImageName">
           must specify an image name
         </message>
diff --git a/config/francais.xml b/config/francais.xml
index 7d4a70640..f1cf8b413 100644
--- a/config/francais.xml
+++ b/config/francais.xml
@@ -709,6 +709,9 @@
         <message name="MustSpecifyImageDepth">
           Il faut spécifier la profondeur d'image
         </message>
+        <message name="MustSpecifyImageManifest">
+          must specify an image manifest
+        </message>
         <message name="MustSpecifyImageSize">
           Il faut spécifier une taille d'image
         </message>