Image-document OCR: jpg/jpeg/png become searchable
Completes the image-OCR change set whose lib half (ocrDocument.ts imagePages/media-type support + convert.ts imageToPdf) was swept into 98f01cf alongside the bridge work: - routes/documents.ts + routes/projects.ts: allow jpg/jpeg/png uploads, stamp correct image content types, and serve images inline from the display route. The project upload handler also gains the same fire-and-forget embed->OCR hook single-document uploads already had, so project uploads no longer depend on manual backfill runs. - lib/chatTools.ts: read_document defers images straight to ocr_text instead of throwing inside the mammoth fallback before the OCR fallback could run. - scripts/ocrBackfill.ts: covers image documents; run `node dist/scripts/ocrBackfill.js <projectId>` to heal the HR backlog. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
| Repository | emileriksenkeev/sydOS |
|---|---|
| Author | emileriksenkeev <emil@keev.co> |
| Authored | |
| Parents | 98f01cf2 |
| Stats | 4 files changed , +69 , -13 |
| Part of | Text extraction and OCR hardening |
Capture this commit into my fork
Download a Markdown prompt that tells Claude how to port this
exact commit into your working tree. Run it via
claude -p < capture-commit-d1d7cd55.md
from inside the repo you want the change in.