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
-
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
-
Add a lando tesseract tooling command — like the existing Tika tooling, add a convenience command so users can run lando tesseract directly.
References
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
Add
tesseract-ocrto the Dockerfiles — it's a standard apt package. Add it to theapt-get installblock in each PHP-FPM Dockerfile (e.g.dockerfiles/8.x-fpm/Dockerfile):Add a
lando tesseracttooling command — like the existing Tika tooling, add a convenience command so users can runlando tesseractdirectly.References