This is probably what you are looking for:
<?php
$output = shell_exec("convert test.svg png:-");
echo $output;
Depending on your local setup, you may need to specify the absolute path to your utility convert. Also, the path to the file to be converted must be resolvable, again the absolute path is a safe bet first.
source
share