It is currently Mon Jun 22, 2026 1:10 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: G'MIC scripting - stability of parameters
PostPosted: Thu Mar 12, 2015 9:33 am  (#1) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
I'm having a play at using G'MIC commands from a GIMP script, but this question probably applies equally to the CLI interface

I'm using the film emulation filter:
-gimp_emulate_film_bw 1,1,0,1,0,0,0,0,0

And that leaves me aware that I'm essentially picking which emulation to use from a list, here it's going to be item 1, which at present is "Agfa APX 100".

The problem is that G'MIC is constantly changing, so I have no guarantee that item 1 will remain "Agfa APX 100".

So my question is: Is there a way to query the preset labels so that I can at least confirm it's still what I think it is?

Ideally I like to be able to get the complete list so that I could offer those options to the user of my script.

Kevin


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: G'MIC scripting - stability of parameters
PostPosted: Thu Mar 12, 2015 10:29 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Hello paynekj.
I guess this could work for you, as we it explicitly invokes the preset name (instead of a number) :
-_gimp_emulate_film  1,agfa_apx_100,1,0,1,0,0,0,0,0


Top
 Post subject: Re: G'MIC scripting - stability of parameters
PostPosted: Thu Mar 12, 2015 2:15 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Ronounours wrote:
Hello paynekj.
I guess this could work for you, as we it explicitly invokes the preset name (instead of a number) :
-_gimp_emulate_film  1,agfa_apx_100,1,0,1,0,0,0,0,0


Thanks and now I've dug around in the G'MIC source code I can see all the others.

I think I might manually pick out 9 of the B&W presets and make a script to give me thumbnail examples of the 9 to help choose which I like best for any particular image. I feel I need this as G'MIC offers too many choices to be able to make reasonable comparisons between.

Kevin


Top
 Post subject: Re: G'MIC scripting - stability of parameters
PostPosted: Thu Mar 12, 2015 4:50 pm  (#4) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Well that was fun.

I made the script create a smaller image and put various emulations as layers to make it easy to compare the effects. I've attached a smaller .xcf to show what I created.

Thanks for the help.

Kevin

My favourite emulation for this image was the Rollei Ir 400:
Attachment:
P1260104_sml_ir.jpg
P1260104_sml_ir.jpg [ 233.97 KiB | Viewed 2942 times ]


Attachments:
P1260104_sml.xcf.gz [2.61 MiB]
Downloaded 156 times
Top
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group