Skip to main content
FINOPS DOCOCR COMPUTE // PAPERLESS-NGX OCR & PDF/A ARCHIVE STUDIO TESSERACT CONCURRENCY | TIKA + GOTENBERG | BASELINE 2026-11-17
PaperlessNGX
PaperlessNGX Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
OCR & Container Tuning

Halving OCR CPU & RAM With Skip Mode and Safe Image Caps

Configure PAPERLESS_OCR_MODE=skip and PAPERLESS_OCR_IMAGE_DPI=300 to avoid burning RAM on born-digital PDFs and giant flatbed scans.

45-65% Lower Batch OCR Time · Zero Giant-TIFF OOMs

Halving OCR CPU & RAM With Skip Mode and Safe Image Caps
Telemetry baseline verified 2026-11-17 by DocOCR Compute.

Protecting Workers From 1,200-DPI Accidental Scans

A single misconfigured flatbed scan at 1,200 DPI expands into a multi-gigabyte raw bitmap inside Tesseract and Ghostscript, killing an entire Celery worker. Capping PAPERLESS_OCR_IMAGE_DPI=300 and setting max image pixels eliminates surprise spikes.

Preserving Native Vector Text

Keeping PAPERLESS_OCR_MODE=skip preserves crisp selectable fonts on utility bills and bank statements while reserving full Tesseract compute for paper scans.

Measured Thresholds & Container Limits

Env FlagRecommended SettingWhy It Matters
PAPERLESS_OCR_MODEskip (default) or redoSkips Tesseract on native-text PDFs
PAPERLESS_OCR_IMAGE_DPI300Prevents 600-1200 DPI scans from exploding RAM
PAPERLESS_OCR_MAX_IMAGE_PIXELS120000000Guards Ghostscript against malformed TIFFs
PAPERLESS_OCR_CLEANcleanRemoves scanner speckle before text extraction
45-65% Lower Batch OCR Time · Zero Giant-TIFF OOMs Deploy $6/TB SliceHostinger KVM ($4.79/mo)