LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-13-2010, 11:23 AM   #1
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191
Blog Entries: 2

Rep: Reputation: 40
Cool 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....
 
Old 07-13-2010, 11:55 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Check out the scripts here:
Fred's ImageMagick Scripts
 
1 members found this post helpful.
Old 07-13-2010, 07:53 PM   #3
TwinReverb
Member
 
Registered: Sep 2008
Location: Misawa AB, Japan
Distribution: Slackware
Posts: 191

Original Poster
Blog Entries: 2

Rep: Reputation: 40
Quote:
Originally Posted by David the H. View Post
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.
 
Old 07-15-2010, 12:10 PM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: SCALE ready for launch – Pre-registration for SCALE spikes, WIOS/OSSIE and more LXer Syndicated Linux News 0 02-19-2010 03:00 PM
LXer: SCALE 8x Update: Jobs@SCALE (not Steve), T-shirts, SCALE Uni and UpSCALE talks LXer Syndicated Linux News 0 02-13-2010 01:10 PM
scripting help for auto shutdown justwantin Linux - General 11 02-18-2007 11:49 AM
Start up scripting and auto login for stand alone linux box kzazula Linux - General 7 01-13-2006 05:22 AM
Auto starting and/or scripting Infernal211283 Linux - Newbie 1 03-22-2005 12:41 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration