Store Photostack album photo uploads in R2 #39

Merged
noel merged 2 commits from feat/photostack-r2-photos into main 2026-12-02 15:24:11 +00:00
Owner

Photostack's production Cloudflare Images endpoint rejected the reported 35 MB album photos at its 20 MB limit. Store new album photos in the existing R2 media bucket. Preserve the uploaded bytes and publish separate WebP gallery and thumbnail previews with their metadata stripped. Keep reading existing Cloudflare Images rows. The upload path uses existing database columns and R2 access.

Verification

  • The Docker Compose suite and app build passed against disposable PostgreSQL.
  • The R2 test sent a 36 MB PNG through the S3 client and verified its SHA-256, both preview objects, and object cleanup on failure and deletion. It also checked the legacy image URL.
  • Animated WebP retained both frames in the gallery preview in a local libvips check.

Rollback

Revert the deployment digest to the previously verified Photostack image. This restores Cloudflare Images uploads and keeps the new R2 objects and database rows. The previous binary cannot render R2 album photo rows, so if new rows have been written, repair forward to an R2-readable build to restore their display. There is no schema change and no data rollback step.

Photostack's production Cloudflare Images endpoint rejected the reported 35 MB album photos at its 20 MB limit. Store new album photos in the existing R2 media bucket. Preserve the uploaded bytes and publish separate WebP gallery and thumbnail previews with their metadata stripped. Keep reading existing Cloudflare Images rows. The upload path uses existing database columns and R2 access. ## Verification - The Docker Compose suite and app build passed against disposable PostgreSQL. - The R2 test sent a 36 MB PNG through the S3 client and verified its SHA-256, both preview objects, and object cleanup on failure and deletion. It also checked the legacy image URL. - Animated WebP retained both frames in the gallery preview in a local libvips check. ## Rollback Revert the deployment digest to the previously verified Photostack image. This restores Cloudflare Images uploads and keeps the new R2 objects and database rows. The previous binary cannot render R2 album photo rows, so if new rows have been written, repair forward to an R2-readable build to restore their display. There is no schema change and no data rollback step.
Store Photostack album photo uploads in R2
Some checks failed
Supply-chain scan / Supply-chain scan (pull_request_target) Failing after 18s
Build / validate (pull_request) Successful in 2m8s
Build / publish (pull_request) Has been cancelled
d9f0e4d7cf
Keep uploaded originals byte-for-byte, deliver separate WebP gallery previews, and resolve older photo rows through Cloudflare Images. Reuse the existing R2 media bucket and photo columns.
deps: update Hugo to its patched 0.170.0 release
All checks were successful
Supply-chain scan / Supply-chain scan (pull_request_target) Successful in 16s
Build / validate (pull_request) Successful in 1m51s
Build / publish (pull_request) Has been skipped
8b8ac5627a
Resolve GHSA-4whp-jx7j-xvrm and GHSA-r48v-r4vw-h9v8 in the existing Air tool dependency graph.
noel merged commit 5f7dea47bc into main 2026-12-02 15:24:11 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
noel/photostack!39
No description provided.