Thanks, but I don't think that fixed the problem. I beleive it is crucial to have the spaces for DOS scripting, not sure about VBS.
I actually found my problem. The parenthesis were located in the wrong positions, so the operators were being isolated incorreclty, yielding a different result.
Just for reference, here is a DOS and VBS equivalent that give the same result, in case anyone is having the same problem.
This script takes imageIn.jpg and applies a clut (Color Look Up Table) to colorize it, but before doing so, shifts only the clut image lut.jpg 100 pixels vertically. Without the parenthesis, the -roll operation would occur on both the imageIn.jpg and the lut.jpg images.
DOS example:
Code: Select all
convert imageIn.jpg ( lut.jpg -roll +0+100 ) -clut imageOut.jpg
Make sure there are spaces on each side of the parenthesis.
VBS example:
Code: Select all
set image = CreateObject("ImageMagickObject.MagickImage.1")
image.convert "imageIn.jpg", "(", "lut.jpg", "-roll", "+0+100", ")", "-clut", "imageOut.jpg"