I found a way to make this work with apache exec by doing the following:
String [] cmd ={"-c","convert -size 140x80 xc:none -fill grey -gravity
NorthWest -draw \"text 10,10 'Copyright'\" -gravity SouthEast -draw \"text 5,15
'Copyright'\" miff:- | composite -tile - /Users/latu/Pictures/desert.jpg
/Users/latu/Pictures/desertCP.jpg"};
CommandLine convert_cmd = new CommandLine("/bin/sh");
convert_cmd.addArguments( cmd,false );
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]