call -engrave from cmd

I’m trying to run the following line from cmd:

“!GMIC_PATH!” “!INPUT_FILE!” -engrave 0.04,40,0,2,45,-1,1,0,10,1,0,0,0,1,0,50,50 -o “!OUTPUT_FILE!”

paths and file names are corrected and the .bat file run under admin privileges…
I’m getting crazy…
Is there someone who may kindly give me some suggestions?
Thanks in advance
Rob

Hi,

A filter’s name and it’s corresponding command name almost always differ.
Try with fx_engrave 0.04,40,0,2,45,-1,1,0,10,1,0,0,0,1,0,50,50.

Also, in the gmic-qt gui, there is an icon to copy any command with your current settings (top right in the picture below):

same problem: [gmic] Unable to create resources folder.
[gmic]./ Start G’MIC interpreter (v.3.3.4).
[gmic]./ Input all frames of TIFF file ‘C:\GIMP_TEMP\Input\123456.tif fx_engrave 0.04,40,0,2,45,-1,1,0,10,1,0,0,0,1,0,50,50 -o C:\GIMP_TEMP\20240304_200219_processed\123456.tif’ at position 0
[gmic]./ *** Error *** Command ‘input’: [instance(0,0,0000000000000000)] gmicList::load_tiff(): Failed to open file ‘C:\GIMP_TEMP\Input\123456.tif fx_engrave 0.04,40,0,2,45,-1,1,0,10,1,0,0,0,1,0,50,50 -o C:\GIMP_TEMP\20240304_200219_processed\123456.tif’.

Here, it looks like G’mic think this whole line (C:/… up to .tif) is a file. A problem with quotes? I’m on linux though so i can’t really help with that.

Maybe @Reptorian can help?

Error found…
Declaring a variable from the calling code there was a " more than necessary…
My fault…
Sorry for bothering and thanks for suggestions

2 Likes

No problem.
:+1:

1 Like

@Roberto_Gabaldo Welcome to the forum BTW.

BTW, could you share what you’re working on? I(we)'d like to see :slight_smile:

1 Like