Skip to content

Commit 59e72d9

Browse files
committed
Use a conformant ComfyUI XMP namespace for AVIF metadata
Switch COMFYUI_XMP_NAMESPACE to http://ns.comfy.org/comfyui/1.0/, an owned-domain, versioned URI ending in a trailing slash per XMP/RDF namespace conventions, instead of the bare repo URL which lacked the trailing separator.
1 parent f2aa3b7 commit 59e72d9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

comfy_extras/nodes_images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ def hlg_to_linear(t: torch.Tensor) -> torch.Tensor:
911911
# ---------------------------------------------------------------------------
912912

913913
_PNG_SIGNATURE = b"\x89PNG\r\n\x1a\n"
914-
COMFYUI_XMP_NAMESPACE = "https://github.com/Comfy-Org/ComfyUI"
914+
COMFYUI_XMP_NAMESPACE = "http://ns.comfy.org/comfyui/1.0/"
915915

916916

917917
def _png_chunk(chunk_type: bytes, data: bytes) -> bytes:

tests-unit/comfy_extras_test/nodes_images_save_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
setattr(comfy_extras, "nodes_images", original_nodes_images_attr)
5151

5252

53-
COMFYUI_XMP_NAMESPACE = "https://github.com/Comfy-Org/ComfyUI"
53+
COMFYUI_XMP_NAMESPACE = "http://ns.comfy.org/comfyui/1.0/"
5454
RDF_NAMESPACE = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
5555

5656

0 commit comments

Comments
 (0)