Executing wkhtmltoimage from PHP it just hangs.\[code\]$command = 'wkhtmltoimage --format "png" "' . $url . '" "' . $output . '"';exec($command);\[/code\]It hangs until PHP times out.I can run the same command from the CLI directly and it works fine.I have also tried:
- adding \[code\]2>&1\[/code\] and \[code\]>nul 2>&1\[/code\].
- using \[code\]shell_exec\[/code\] and backticks.
- wrapping the exec in a batch file and calling \[code\]EXIT /B 0\[/code\]