I made a Perl script that generates GMIC command line strings (here for Win) like
gmic_string_final = "C:\Program Files\gmic_cli_2.0.2_win64\gmic.exe" -input D:\D-ART\Abstrakt_ART\gmic_input.jpg -fx_conformal_maps 0,1,0,"1/(4*z^2-1)",1,1,0,0,0,2,0,1,"2000","2000" -blur 1.5,1,0 -output D:\D-ART\Abstrakt_ART\CM\CM-1_(4$z^2-1)-2017-06-29-01\CM-1_(4$z^2-1)-2017-06-29-01-0001-01-01.jpg
I just tested this command and got the error:
[gmic]-1./ Output image  as jpg file 'D:\D-ART\Abstrakt_ART\CM\CM-1_(4^2-1)-2017-06-29-01\CM-1_(4^2-1)-2017-06-29-01-0001-01-01.jpg', with quality 100% (1 image 2000x2000x1x4).
[gmic]-1./ *** Error *** Command '-output': gmic::fopen(): Failed to open file 'D:\D-ART\Abstrakt_ART\CM\CM-1_(4^2-1)-2017-06-29-01\CM-1_(4^2-1)-2017-06-29-01-0001-01-01.jpg' with mode 'wb'.
Most probably the reason is that the output folder and file name is mutilated:
the folder that was generated with mkdir for the batch run is: D:\D-ART\Abstrakt_ART\CM\CM-1_(4$z^2-1)-2017-06-29-01
the derived file name is folder name with some indexes: CM-1_(4$z^2-1)-2017-06-29-01\CM-1_(4$z^2-1)-2017-06-29-01-0001-01-01.jpg
According to the error message the folder and file name was mutilated in the part that is coding the used complex function: 1_(4^2-1) instead 1_(4$z^2-1) (half-decent file system compatible coding for '1/(4*z^2-1)').
What is going on here and how to fix it? Thanks!
(because it runs on Win I have not tested if and how backslashing the given quotes and parentheses in the -fx_conformal_maps substring is necessary)