Steve Turnbull wrote:
eg. exec("convert -sample 25%x25% $img thumb.$img");
But these functions are often disabled on public servers and you should
also be aware that the command might be executed by the user running the
web server (running PHP as CGI or with suexec wrapper is the cure for this).