Image processing in the TYPO3 9 install tool fails for PDF to JPG generation (thumbnail generation), while running a convert
on the console works.
I use a ionos managed dedicated server and activated PDF processing like described here.
The image processing check delivers:
Read pdf
Image generation failed
ImageMagick / GraphicsMagick handling is enabled, but the execute command returned an error. Please check your settings, especially ['GFX']['processor_path'] and ['GFX']['processor_path_lzw'] and ensure Ghostscript is installed on your server.
Unfortunately it doesn't show the evaluated call, nor the returned error. How can i debug the problem?
Update with more details:
ImageMagick 6.9.10-23 und Ghostscript 9.27 is installed.
Through insertion of outputs in the TYPO3 code i could narrow it down to the fact that ImageMagicks identify
command to determine the PDFs size (width/height) executed via PHPs exec
returns 1
instead of commands output.
Command line:
'/usr/bin/identify' 'pdf:/kunden/homepages/4/***/htdocs/typo3/sysext/install/Resources/Public/Images/TestInput/Test.pdf[0]'
delivers correctly: PDF 595x842 595x842+0+0 16-bit ColorSeparation CMYK 1.91122MiB 0.000u 0:00.000
Whereas via PHP:
exec("'/usr/bin/identify' 'pdf:/kunden/homepages/4/***/htdocs/typo3/sysext/install/Resources/Public/Images/TestInput/Test.pdf[0]'", $output, $returnValue);
echo $returnValue;
delivers incorrectly 1
What's the problem here?