LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Scripting Auto-WhiteBalance and 50% scale (https://www.linuxquestions.org/questions/programming-9/scripting-auto-whitebalance-and-50-scale-819616/)

TwinReverb 07-13-2010 11:23 AM

Scripting Auto-WhiteBalance and 50% scale
 
Does anyone have an example of a way to use ImageMagick or GIMP to Auto-White-Balance and scale 50% as a shell script? I'm asking because I usually do this to post-process photos in GIMP but being able to do this in a shell script means I could put it in Thunar in Xfce and save myself quite a bit of time.

I checked the man page of mogrify and convert and didn't see any auto-white-balance type options that I am aware of.

Thanks!

I already have GIMP set up with keyboard shortcuts for these actions....

David the H. 07-13-2010 11:55 AM

Check out the scripts here:
Fred's ImageMagick Scripts

TwinReverb 07-13-2010 07:53 PM

Quote:

Originally Posted by David the H. (Post 4032019)
Check out the scripts here:
Fred's ImageMagick Scripts

Thanks, that helped somewhat.

However, I find his autowhite script very slow, slower than firing up GIMP and doing it manually (granted all I have to do is ctrl+alt+shift+W to auto-white-balance).

Does anyone maybe know how to run a command through GIMP without loading GIMP, i.e. just to tell it to auto-white-balance something and then exit? I think I saw something like that once but I'm not sure.

David the H. 07-15-2010 12:10 PM

Well, gimp does have a batch processing mode, but it's apparently not all that simple to use. You have to set up your own scripts for it. See here:

http://www.gimp.org/tutorials/Basic_Batch/

There's also David's Batch Processor (no relation :)), a gui plugin for applying various common actions to multiple files. It'll do resizing, but not white-balancing.


All times are GMT -5. The time now is 04:01 AM.