How Does One Use Testing - Garagecoder - Warp Map from the Command Line

A question: in the G’MIC plugin there is the filter Testing - Garagecoder - Warp Map. Can this filter be used from the DOS command line? If so, how are the input files specified? Copying out the parms from the plugin, there is no indication of how the input files are specified and I failed to find anything online.

Following is the command I used but which did not work:

gmic verbose + input thefile2.jpg input thefile.jpg +gcd_warpmap 5,0,0,0,0 cut[0] 0,255 output[0] warpmap0.jpg  cut[1] 0,255 out
put[1] warpmap1.jpg
[gmic]-0./ Start G'MIC interpreter.
[gmic]-0./ Increment verbosity level (set to 2).
[gmic]-0./ Input file 'thefile2.jpg' at position 0 (1 image 1428x835x1x3).
[gmic]-1./ Input file 'thefile.jpg' at position 1 (1 image 1428x835x1x3).
[gmic]-2./gcd_warpmap/*repeat/*local/*if/ Set local variable 'bm=0'.
[gmic]-3./ Cut image [0] in range [0,255].
[gmic]-3./ Output image [0] as jpg file 'warpmap0.jpg', with quality 100% (1 image 1428x835x1x3).
[gmic]-3./ Cut image [1] in range [0,255].
[gmic]-3./ Output image [1] as jpg file 'warpmap1.jpg', with quality 100% (1 image 1428x835x1x3).
[gmic]-3./ End G'MIC interpreter.

For the CLI tool, the order of the image must correspond to the order of the GIMP layers, from top to bottom.
So image [0] is the top layer.

Hi David, Thank you. So in the instance of the gcd_warpmap filter, on the input side the command would look like the following:

gmic image2bewarped.jpg warpingsourceimage.jpg +gcd_warpmap ,  ...
1 Like

Ping @garagecoder