I am trying to run commands through TProcessUTF8. I want to convert between different formats using various tools, including postscript. To manipulate images, I use imagemagick's convert.
I need to quote with double inverted commas to allow correct translation of file names (I am using Linux).
If I use
Command.CommandLine:='convert "/tmp/01 01.png" "/tmp/out/test 01.ps"';
Command.Execute;
Everything is fine. Unfortunately, the resulting output file tends to be huge, so I try to make it smaller:
Command.CommandLine:='convert "/tmp/01 01.png" -compress jpeg eps3:"/tmp/out/test 01.ps"';
Command.Execute;
But, once I add some parameters, it seems to do nothing.
How should I send the command to make it work properly?
Thanks