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: | 349 |
Nodes: | 16 (0 / 16) |
Uptime: | 152:07:52 |
Calls: | 7,615 |
Calls today: | 3 |
Files: | 12,792 |
Messages: | 5,685,531 |
Posted today: | 2 |