all gmic filters for a single photo/image

Is there a script to generate and apply all G’MIC filters on a single image/photo ?
thank you

No, but theoretically possible with cavaets which will take a while to explain, and there are in fact over 1000 filters. There are also variants within filters. A single filter can be multiple in one. If you’re looking for previews, that is what the GUI is for.

Yes, that could be done, using command parse_gui.
But this will apply filters with their default parameters, and by default some filters seems to do nothing as default params does not change the image (e.g: Color Presets, Contrast, …).

Hello David
I tried the command and it generates information about the filter, but no image generated

gmic parse_gui

[gmic]-0./ Start G’MIC interpreter.
[gmic]-0./ Parse ‘#@gui’ filters ‘*’ and output in ‘print’ mode.

[#1095] Testing/Zonderr/Demo Mathmap XY
[#1096] Testing/Zonderr/Fourier Picture Watermark
[#1097] Testing/Zonderr/Mathmap Flag
[#1098] Testing/Zonderr/Rel2ellv3
[#1099] Various/!>> UPDATE INFORMATION
[#1100] Various/Custom Code [Global]
[#1101] Various/Custom Code [Local]
[#1102] Various/Export RGB-565 File
[#1103] Various/Games & Demos
[#1104] Various/Histogram Analysis
[#1105] Various/Import Data
[#1106] Various/Import RGB-565 File
[#1107] Various/Intarsia
[#1108] Various/Sample Image
[#1109] Various/Solve Maze

[gmic]-0./ End G’MIC interpreter.

I also tried to understand the command arguments without luck

let’s say I have a single image file named 28.jpg in a folder

I would like the gmic parse_gui command arguments to generate a different image (with a different filename matching the filter name)

thank you

Indeed, the specific output mode you are looking for is not implemented yet.
But this can be done (relatively easily I think) in a somehow near future, depending on my motivation (or the motivation of other developers around here) :slight_smile:
I’ll probably give a try soon, when I get some free time.

Pushed a filter update this morning, with a new mode images for command parse_gui.
This new mode tries to generate resulting images of all filters.


$ gmic update


$ gmic input.jpg store _input_image parse_gui images

(be sure you run this in an empty folder, as the output images are saved directly in the current folder, and there are a lot of them).

gmic update
[gmic]-0./ Start G’MIC interpreter.
[gmic]-0./ Update commands from the latest definition file on the G’MIC server.
[gmic]-0./ End G’MIC interpreter.

martin@jlc:~/Pictures/downloaded/Julie Masse/28$ gmic 28.jpg store $_input_image parse_gui images
[gmic]-0./ Start G’MIC interpreter.
[gmic]-0./ Input file ‘28.jpg’ at position 0 (1 image 454x890x1x3).
[gmic]-1./ Store image [0] as variable ‘parse_gui’
[gmic]-0./ Input file ‘images’ at position 0
[gmic]-0./ *** Error *** Unknown command or filename ‘images’; did you mean ‘image’?

Ha yes, sorry, it was:

gmic input.jpg store _input_image parse_gui images
1 Like

Merci, David!

Very valuable! I just discovered three g’mic filters
that I hadn’t thought of before :-)))

Claes à Lund, La Suède


Seem to hang at [#1110] CeKoaSa 003: samj_CeKoaSa_003 0,5,1,0,3.

Other than that, great work.


Here is the link to an archive containing the results of this filter ‘parse_gui images’ obtained with the ‘colorful.jpg’ image (800x800)
Edit 20220831:
158 Mo (166 712 385 bytes)
JPEG Q=70%