diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-08-26 22:44:05 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-08-28 10:02:05 -0400 |
| commit | b2aaf09e46d6c7450311c5f684f3d811521b3ad1 (patch) | |
| tree | 8c80691b95e77286fa694af858db39360a7ca01b /org/ocda_obj_setter.org | |
| parent | .ssp digests: report missing or unreadable image (diff) | |
.ssp digest: add image file's own pixel dimensions
Complete image file digest identity record: add
px:<width>x<height> to the .ssp image record, read from the
image file header (imageformats.read_image_info, no decode):
.image: won_benkler_2_1.png sha256:5BA4...D128 bytes:93861 px:420x342
(The w##h## dimensions in the markup are display dimensions, not the
file's: they are author set, or where given as w0h0 are derived by
_image_dimensions and capped to a maximum display width, and they
become the width/height attributes of the output format image display).
(assisted by Claude-Code)
Diffstat (limited to 'org/ocda_obj_setter.org')
| -rw-r--r-- | org/ocda_obj_setter.org | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org/ocda_obj_setter.org b/org/ocda_obj_setter.org index 8e7a67c..f16e133 100644 --- a/org/ocda_obj_setter.org +++ b/org/ocda_obj_setter.org @@ -54,6 +54,8 @@ struct ST_file_name_hash_size_ { ubyte[32] fileHash_sha256; ulong fileSize; bool fileMissing = false; // file not found or unreadable, fileHash_sha256 & fileSize unset + int imageWidth = 0; // actual pixel dimensions of the + int imageHeight = 0; // file, not the display dimensions carried in the markup (w##h##) } struct SHA_256_Hashes_ { char[] summary; |
