]> git.giacomolli.uk - onechat/commit
Store shared private images by content hash
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Tue, 10 Nov 2026 14:35:12 +0000 (11:35 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Tue, 10 Nov 2026 15:29:37 +0000 (12:29 -0300)
commit36229ef68a30c5a117599037d79fa1fc708fbfef
tree33ebc268af830cf515e565ec4934c650badf05ef
parent3738533260a8eb914e211b8d909e92a14c0c266c
Store shared private images by content hash

Keep one immutable JPEG, PNG, or WebP file per image in the shared data
store. Validate size and format before atomic publication, and preserve
image files and modes in backups. The WebP config decoder needs x/image
because the standard library has no WebP decoder.
agent.go
backup_archive.go
go.mod
go.sum
image.go [new file with mode: 0644]
image_helper_test.go [new file with mode: 0644]
image_test.go [new file with mode: 0644]
nix/package.nix