QM-Texterkennung: Imagick nur mit Ghostscript als verfügbar melden
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Failing after 3m18s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 3m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 3m0s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 2m56s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 4m4s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 4m1s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 3m41s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 3m39s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m10s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-26 16:38:17 +00:00
parent 5a360d3cc7
commit b50d089946
117 changed files with 1747 additions and 2 deletions

View file

@ -101,7 +101,8 @@ class Ocr
}
try {
if (class_exists(Imagick::class) && in_array('PDF', Imagick::queryFormats('PDF'), true)) {
// Imagick meldet PDF auch ohne Ghostscript – ohne „gs“ scheitert das Umwandeln aber.
if ($exec && class_exists(Imagick::class) && in_array('PDF', Imagick::queryFormats('PDF'), true) && $this->run(['gs', '--version']) !== null) {
return 'imagick';
}
} catch (Throwable) {