I'm trying to run an external imagemagick command. As such, it needs to 
include some escaped parenthesis. In shell it would look like this:

convert img.png \( -clone 0 -crop 450x+450+0 -dither None -remap 
colormap1.png \) \( -clone 0 -crop 450x+951+0 -dither None -remap 
colormap2.png \) -delete 0 z%d.png

But when I build something like this in julia:

cmd = `convert $fname ( -clone 0 -crop wx+$(w+1)+0 -dither None -remap 
colormap1.png ) ( -clone 0 -crop 450x+$(sz[1]-w+1)+0 -dither None -remap 
colormap2.png ) -delete 0 z%d.png`

the parenthesis don't get escaped (as they should be).

This is not the first time I've gone crazy over this issue. Any ideas?

Reply via email to