Hi Shahjada,
thank you for your reply.
My hoster gave me the hint, that the environment variable must be passed before the function calling Imagick.
He gives the following example:
###############<snip>
<?php
putenv(“HOME=/homepages/12/d123456789/htdocs”);
$cmd = ‘/usr/bin/convert /homepages/12/d123456789/htdocs/document.pdf /homepages/12/d123456789/htdocs/document.jpg’;
shell_exec($cmd);
?>
###############</snap>
Maybe there is a solution if you share me the file that accomplishes the call via shortcode [pdf_thumb] so that I
paste them into my child theme with the mentioned environment variable…
greets
Eckhard