Skip to content

Add Tesseract OCR support for PHP Runtime Generation 2 parity #343

Description

@AaronFeledy

Summary

Pantheon announced Tesseract OCR support on PHP Runtime Generation 2 (Feb 11, 2026). Tesseract can be used alongside Apache Tika for extracting text from images and scanned documents. Since Gen 1 is being removed in April 2026, all sites will be on Gen 2 soon.

Lando's Pantheon appserver images currently include Tika but not Tesseract, creating a dev/prod parity gap for sites that rely on OCR.

Proposed Approach

  1. Add tesseract-ocr to the Dockerfiles — it's a standard apt package. Add it to the apt-get install block in each PHP-FPM Dockerfile (e.g. dockerfiles/8.x-fpm/Dockerfile):

    apt-get install -y openjdk-17-jdk tesseract-ocr
  2. Add a lando tesseract tooling command — like the existing Tika tooling, add a convenience command so users can run lando tesseract directly.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions