images: add Pillow to the web extra so the API container downscales too

The on-demand /api/img path runs in the container (only fastapi+uvicorn), so without
Pillow it fell back to caching the original full-size bytes instead of a downscaled
WebP. Add Pillow>=10 to the web extra. The host cycle already had it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
jay
2026-06-29 20:30:05 -04:00
parent 8a3c00db3b
commit c33dad9832
2 changed files with 1 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

+1
View File
@@ -15,6 +15,7 @@ dependencies = []
web = [ web = [
"fastapi>=0.110", "fastapi>=0.110",
"uvicorn[standard]>=0.29", "uvicorn[standard]>=0.29",
"Pillow>=10", # downscale/re-encode cached article images (goodnews/newsimg.py)
] ]
test = [ test = [
"pytest>=8", "pytest>=8",