I’m going through the GMIC tutorials and having an issue with the “-repeat (+)” tutorial at: http://gmic.eu/tutorial/_repeat.shtml
This is the code I’m running (copied/pasted from the tutorial):
gmic -input ampersand_goudybl1911.jpg -negative[-1] -blur[-1] 3,1,0 100% 100% -append c -expand_x {{w}/2} 100%,100%,100%,100% -append[-2,-1] y 100%,100%,100%,100% -repeat {360/6} k={6*($>+1)} --rotate[0] {$k},2,1,255,255 -apply_channels[-1] "-add "$k,hsl_h -blend[-2,-1] negation,0.7 -done -rm[-2] -output twirl.png
I keep getting an error:
[gmic]-0./ Start G’MIC interpreter.
[gmic]-0./ Input file ‘ampersand_goudybl1911.jpg’ at position 0 (1 image 256x256x1x3).
[gmic]-1./ Compute negative of image [0].
[gmic]-1./ Blur image [0] with standard deviation 3, neumann boundary conditions and quasi-gaussian kernel.
[gmic]-1./ Input black image at position 1 (1 image 100x1x1x1).
[gmic]-2./ Append images [0,1] along the ‘c’-axis, with alignment 0.
[gmic]-1./ Expand image [0] along the x-axis with size 128 and boundary conditions 1.
[gmic]-1./ Input black image at position 1 (1 image 100x100x1x1).
[gmic]-2./ Append images [0,1] along the ‘y’-axis, with alignment 0.
[gmic]-1./ Input black image at position 1 (1 image 100x100x1x1).
[gmic]-2./repeat/ Set local variable k=’{6('.
[gmic]-2./*repeat/ *** Error *** Item substitution '{{6*(}’: Unbalanced parentheses/brackets, in expression ‘{6*($’.
Either I’m making a very basic mistake or the tutorial coding is incorrect? I’m wondering if any of you would mind running the code and see if you get the same results?



