This is not an answer but more info for others reading your question.
While I have used ImageMagick and IIRC used it from SWI-Prolog via command line I don’t ever recall seeing ( ) being used on the command line. So for others here is what I found
it seems i have it working now, i accidentally added a space between - and clone in my prolog code, and with that it was standing still without error messages. but now it seems to work
Mostly should work fine. Note however that Prolog quoted atoms/strings require a \ to be escaped as \\. Prolog gives the resulting command to the shell.
Typically it is easier to use process_create/3 as you simply give a Prolog list of process arguments that the library makes sure the process is called the right way. So you get something like
i was aware of this and i used dubbel back slash inside the string in the swi prolog code, then when you use the same string in the shell command , it should output 1 backward slash i think, though when you use : term_string( Thestring , Output ), and you use write( Output ) you will get 2 back slashes