Pedro Graca <hex...@hotpop.com> wrote in message news:<brtb6g$74nr4$1...@ID-203069.news.uni-berlin.de>...
Morten wrote:
But when running via PHP exec, the yellow box gets created alright,
but the text doesn't show.
exec($CONVERT." -font helvetica xc:yellow -resize 100x15! -gravity \"West\" -draw \"text 0,0 \'".$text."\'\" ".$file, $out, $err);
Any suggestions?
Try echo instead of exec
echo $CONVERT." -font helvetica xc:yellow -resize 100x15! -gravityAnd pasting the result of echo into a term works. I've found that this is highly likely to be due to imagemagick convert invokes another executable which is in /usr/local/bin and this path is not part of the PATH visible
\"West\" -draw \"text 0,0 \'".$text."\'\" ".$file;
to PHP (according to phpinfo()). How do I add it?
Thanks,
Morten
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 427 |
Nodes: | 16 (2 / 14) |
Uptime: | 38:03:59 |
Calls: | 9,029 |
Files: | 13,384 |
Messages: | 6,009,174 |