- cmd = "text " + cmd.substring(0, secondcomma) + " " + ((String) cmd).substring( secondcomma + 1).replace( '\'', '"');
Isn't it possible to use the args of the exec class so we don't need to escape?
I think the arg "text 100,100 'some text'" needs to be send to ImageMagick as one argument. I did several tests, but I'm not sure if I tested sending it as three arguments. The problem was that for some reason the single quotes where escaped to double quotes. This didn't give problems on Linux, but it did on Windows.
Jaco
