From 10968545531b2fcd1636bf18e447a190babbb5f0 Mon Sep 17 00:00:00 2001 From: dtoro Date: Tue, 7 Apr 2026 08:39:01 +0200 Subject: [PATCH] feat: backend /proxy endpoint for full-res RAW/HEIC display Adds GET /photos/{id}/proxy that decodes RAW (rawpy), HEIC (pillow-heif), and TIFF to a cached full-resolution WebP at /data/proxies/{id}.webp. Web-safe formats (JPEG/PNG/WebP/GIF) pass through to the original to avoid pointless transcoding. RAW failures fall back to extracting the embedded JPEG preview. Mirrors the X-Accel-Redirect pattern from the existing thumb endpoint. Also fixes GET /photos/{id}/original to return the correct image/jpeg, image/png, video/mp4, etc. content types instead of always serving application/octet-stream, so and