8000 Add global media library with reuse and AVIF conversion by kiran-brahma · Pull Request #5 · kiran-brahma/microfeed · GitHub
[go: up one dir, main page]

Skip to content

Add global media library with reuse and AVIF conversion - #5

Merged
kiran-brahma merged 1 commit into
mainfrom
feature/media-manager
Aug 14, 2026
Merged

kiran-brahma merged 1 commit into
mainfrom
feature/media-manager

Conversation

@kiran-brahma
Copy link
Copy Markdown
Owner

Adds a global media library for the personal site.

  • New media_library table (migration 0020)
  • Completed uploads auto-recorded in the library
  • Admin media library page (grid, delete)
  • Reuse library images as post cover or attachment (no re-upload)
  • Client-side 1:1 crop + AVIF conversion (PNG fallback)

AVIF decision: server-side conversion (sharp WASM / Image Resizing) is not feasible in this Worker (no bundled image lib, Image Resizing needs entitlement). Client-side canvas.toBlob('image/avif') is used; Chrome/Edge produce AVIF, others fall back to PNG.

Tests: 620 unit + 142 worker pass, typecheck clean.

@kiran-brahma
kiran-brahma marked this pull request as ready for review August 14, 2026 07:23
@kiran-brahma
83E7 kiran-brahma merged commit 83361b4 into main Aug 14, 2026
1 of 2 checks passed
@kiran-brahma
kiran-brahma deleted the feature/media-manager branch August 14, 2026 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0