From 8e7a8996944f80ca7e05d743b33deb1ac233f74f Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 26 Aug 2026 22:41:06 -0400 Subject: .ssp digests: report missing or unreadable image image digest: record missing or unreadable image, do not abort safeComputeHashAndSize() open image with guard, so a document naming an image absent from media/image/ throws ErrnoException out of the abstraction stage. as with _image_dimensions() (which warns and continues where issue with image) warn to stdout and record the fact in the abstraction: .image: ffa.png missing:true the abstraction would now state that the object embeds an image it could not read, rather than the .ssp resemble one produced from a complete pod. The sha256 summary line marks the same case MISSING OR UNREADABLE. (assisted by Claude-Code) --- src/sisudoc/ocda/abstraction/ssp.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sisudoc/ocda/abstraction/ssp.d') diff --git a/src/sisudoc/ocda/abstraction/ssp.d b/src/sisudoc/ocda/abstraction/ssp.d index 95f7fda..ea76d71 100644 --- a/src/sisudoc/ocda/abstraction/ssp.d +++ b/src/sisudoc/ocda/abstraction/ssp.d @@ -293,7 +293,10 @@ template spineAbstractionTxt() { +/ if (obj.metainfo.sha256.images.length > 0) { foreach (i; obj.metainfo.sha256.images) { - output ~= ".image: " ~ i.fileName + output ~= (i.fileMissing) + ? ".image: " ~ i.fileName + ~ " missing:true" + : ".image: " ~ i.fileName ~ " sha256:" ~ i.fileHash_sha256.toHexString.to!string ~ " bytes:" ~ i.fileSize.to!string; } -- cgit v1.2.3