It is currently Tue Aug 18, 2026 4:59 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: How to alter multiple batches of files with GMIC effects?
PostPosted: Thu Feb 09, 2017 7:21 am  (#1) 
Offline
GimpChat Member

Joined: Feb 09, 2017
Posts: 14
I have several hundred files all of which I need to do the same thing to.
How do I do that (other than hanging myself after trying to do it manually)?

Any help! Seriously needed to get my feet wet One can't swim without someone teaching you how to get in the water
:otb


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: How to alter multiple batches of files with GMIC effects?
PostPosted: Thu Feb 09, 2017 8:12 am  (#2) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2613
Quote:
...Any help! Seriously needed to get my feet wet One can't swim without someone teaching you how to get in the water...


Remember Gimp is a very comprehensive application with a steep learning curve.

There is a batch plugin BIMP that you might use (depending on OS) see:
http://www.alessandrofrancesconi.it/projects/bimp/

If using gmic, I advise using the older version 1.8 I think there is a problem entering parameters with gmic2, edit: I use linux, had the executable write permissions unset - so gmic2 does work, however FWIW you run a test image to get the required parameters. Gmic will write to a logfile if required.

Maybe something like this: http://i.imgur.com/YIaguAD.jpg The same applies to any other filter/script/plugin you want to use.

Once you have all the parameters, add them to BIMP as actions. Two for example, gmic followed by the gimp impressionist filter.
screenshot: http://i.imgur.com/K7ajmCt.jpg

Just one image as an example, but you can add a whole folder full. Opened up in gimp the result: http://i.imgur.com/kI5MrQa.jpg


Top
 Post subject: Re: How to alter multiple batches of files with GMIC effects?
PostPosted: Thu Feb 09, 2017 8:33 am  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
smoofzilla wrote:
I have several hundred files all of which I need to do the same thing to.
How do I do that (other than hanging myself after trying to do it manually)?

Any help! Seriously needed to get my feet wet One can't swim without someone teaching you how to get in the water
:otb


GMIC can run as a command line application, much better for batch processing than going through Gimp.

_________________
Image


Top
 Post subject: Re: How to alter multiple batches of files with GMIC effects?
PostPosted: Thu Feb 09, 2017 3:48 pm  (#4) 
Offline
GimpChat Member

Joined: Jul 18, 2016
Posts: 25
Hello, perhaps the following might be helpful as well:
https://paulsphotopalace.wordpress.com/ ... s-at-once/
At the bottom of that article there's a link to a second article, explaining how to apply several g'mic commands to a series of photos.


Top
 Post subject: Re: How to alter multiple batches of files with GMIC effects?
PostPosted: Thu Feb 09, 2017 6:14 pm  (#5) 
Offline
GimpChat Member

Joined: Feb 09, 2017
Posts: 14
rich2005 wrote:
Quote:
...Any help! Seriously needed to get my feet wet One can't swim without someone teaching you how to get in the water...


Remember Gimp is a very comprehensive application with a steep learning curve.

There is a batch plugin BIMP that you might use (depending on OS) see:
http://www.alessandrofrancesconi.it/projects/bimp/

If using gmic, I advise using the older version 1.8 I think there is a problem entering parameters with gmic2, edit: I use linux, had the executable write permissions unset - so gmic2 does work, however FWIW you run a test image to get the required parameters. Gmic will write to a logfile if required.

Maybe something like this: http://i.imgur.com/YIaguAD.jpg The same applies to any other filter/script/plugin you want to use.

Once you have all the parameters, add them to BIMP as actions. Two for example, gmic followed by the gimp impressionist filter.
screenshot: http://i.imgur.com/K7ajmCt.jpg

Just one image as an example, but you can add a whole folder full. Opened up in gimp the result: http://i.imgur.com/kI5MrQa.jpg



Where to find out how to set parameters, i.e. gimp commands in bimp as actions, is there some add action button as well? Where would i get a list of the gimp scripts' keyword syntax that would be recognized in bimp, in the gimp scripts did I presume, I hope I am right?


Top
 Post subject: Re: How to alter multiple batches of files with GMIC effects?
PostPosted: Fri Feb 10, 2017 4:00 am  (#6) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2613
Quote:
Where to find out how to set parameters, i.e. gimp commands in bimp as actions, is there some add action button as well?
Where would i get a list of the gimp scripts' keyword syntax that would be recognized in bimp, in the gimp scripts did I presume, I hope I am right?


If you looked at the BIMP webpage there are examples there, but apart from built in dialogs - resize - crop - watermark etc there is a 'other gimp procedure' option. The big square with a plus adds incremental actions.

Use the filter in Gimp to determine the values to enter in the BIMP dialog. example: http://i.imgur.com/ZRG1JIF.jpg

G'mic is a little different, there are only two parameters input layers, set that to 1 and a command string. If you are clever you will have determined this without any help and can skip BIMP and use gmic in a batch file as mentioned by ofnuts. I have to use the option to write to a log file see: http://i.imgur.com/YIaguAD.jpg which might look like this
[gmic_gimp]./preview/ -v -99 -fx_bokeh_preview 3,8,0,30,8,4,0.3,0.2,210,210,80,160,0.7,30,20,20,1,2,170,130,20,110,0.15,0

[gmic_gimp]./apply/ -v -99 -fx_bokeh 3,8,0,30,8,4,0.3,0.2,210,210,80,160,0.7,30,20,20,1,2,170,130,20,110,0.15,0


and from that extract
-v -99 -fx_bokeh 3,8,0,30,8,4,0.3,0.2,210,210,80,160,0.7,30,20,20,1,2,170,130,20,110,0.15,0

to copy and paste into BIMP.

You can of course save the total set of actions in a bimp file for later/repeated use if you want, a matter of using BIMP to see what it does and does not do. Generally most of the Gimp filters work, but not all. Some but not all third party scripts will also show up. Use the BIMP search function and a keyword (a sensible guess)

edit: It might help if you gave your OS & version.


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group