Post Reply 

Mass Editing

May 23, 2011, 12:24
Post: #1
Mass Editing
Hi,
another script-fu that i created. similar to http://emeryclark.net/2011/03/batch-scri...to-levels/ but with graphical interface.

it can:
- auto white balance images
- normalize images

just choose an input directory with jpg-images and an output directory for the resulting files. the script will/should do the rest.

its very new and not stable yet. feedback please Smile


Attached File(s)
.txt  mass-editor.txt (Size: 1.2 KB / Downloads: 189)
Find all posts by this user
Quote this message in a reply
May 23, 2011, 12:43
Post: #2
RE: Mass Editing
My two cents:

1) Use extension .SCM
2) Level stretching isn't "white balance", which is a very different concept.
3) Why not use the <Image>/Filters menu like everybody else?
4) "gimp-message" puts out a dialog box (with the default settings). This is going to be a real pain when doing some real mass-editing (2 clicks per file, have to sit there while it runs...)

If you want your script to receive coverage, advertise/publish it on registry.gimp.org

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
May 23, 2011, 12:50
Post: #3
RE: Mass Editing
(May 23, 2011 12:43)ofnuts Wrote:  1) Use extension .SCM

i cannot upload it then.

(May 23, 2011 12:43)ofnuts Wrote:  2) Level stretching isn't "white balance", which is a very different concept.

oh, is it? i could not find a function called gimp-white-balance for example... i found the script i linked above and built just a similar script-fu with gui.

(May 23, 2011 12:43)ofnuts Wrote:  3) Why not use the <Image>/Filters menu like everybody else?

because, in my opinion, the <Image>/Filters menu is for filters that affect an actual image. this one loads and saves independent. but i may change that.

(May 23, 2011 12:43)ofnuts Wrote:  4) "gimp-message" puts out a dialog box (with the default settings). This is going to be a real pain when doing some real mass-editing (2 clicks per file, have to sit there while it runs...)
oh, thanks. i should have deleted the messages.

(May 23, 2011 12:43)ofnuts Wrote:  If you want your script to receive coverage, advertise/publish it on registry.gimp.org

yes, i will probably do that. thanks for that tip.
Find all posts by this user
Quote this message in a reply
May 23, 2011, 14:02
Post: #4
RE: Mass Editing
(May 23, 2011 12:50)umwelt Wrote:  
(May 23, 2011 12:43)ofnuts Wrote:  1) Use extension .SCM

i cannot upload it then.

(May 23, 2011 12:43)ofnuts Wrote:  2) Level stretching isn't "white balance", which is a very different concept.

oh, is it? i could not find a function called gimp-white-balance for example... i found the script i linked above and built just a similar script-fu with gui.

(May 23, 2011 12:43)ofnuts Wrote:  3) Why not use the <Image>/Filters menu like everybody else?

because, in my opinion, the <Image>/Filters menu is for filters that affect an actual image. this one loads and saves independent. but i may change that.

(May 23, 2011 12:43)ofnuts Wrote:  4) "gimp-message" puts out a dialog box (with the default settings). This is going to be a real pain when doing some real mass-editing (2 clicks per file, have to sit there while it runs...)
oh, thanks. i should have deleted the messages.

(May 23, 2011 12:43)ofnuts Wrote:  If you want your script to receive coverage, advertise/publish it on registry.gimp.org

yes, i will probably do that. thanks for that tip.
1) maybe because GimpForums isn't meant as a software distribution platform, unlike
the Gimp registry or Sourceforge Smile
2) see http://registry.gimp.org/node/72 for a very good one.
3) In 2.6 and later there is no <Toolbox> menu anyway. Maybe your script would be more at home in <Image>/File or <Image>/Image

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
May 23, 2011, 17:05
Post: #5
RE: Mass Editing
hi,
i believe that there are enough possibilities to write better scripts than me. no question Smile. I wrote my first script-fu yesterday.

my script is a mass editing script that calls some different functions. if you could tell me, how to call the gimp intern white balance function, you would be more helpful to me Smile
the script you linked is a completely different script.

regards!
Find all posts by this user
Quote this message in a reply
May 23, 2011, 17:53
Post: #6
RE: Mass Editing
There is no Gimp built-in function for a white balance. You can call the linked script after making it a prereq, or understand how that script does it an re-implement it in python.

However, a proper white-balance correction requires to show the script what color in the picture ought to be pure gray by pointing to an area or the right color (in the script above you make it the foreground color, by using the color picker), and that's a manual operation, not really practical in a mass edition (unless you lake the same correction in every picture, in which case you would keep the same foreground color throughout).

Another solution is to keep your code as is and call that operation level-stretching.

It is also likely that what you do here could have been done at least as fast using ImageMagick: http://www.imagemagick.org/script/comman...ptions.php (see the -level and -normalize options)

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Editing orf file in Gimp allelopath 6 3,467 Oct 6, 2012 13:45
Last Post: allelopath
  Is there a plugin that allows editing in tiled view? 13thvulture 9 1,638 May 16, 2012 21:07
Last Post: keizgon

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS