RSS/Atom feed Twitter
Site is read-only, email is disabled

batch script red eye removal

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 5 messages available
Toggle history

Please log in to manage your subscriptions.

batch script red eye removal Wouter 25 Feb 22:07
  batch script red eye removal Frank Gore 25 Feb 22:38
  batch script red eye removal saulgoode@flashingtwelve.brickfilms.com 26 Feb 05:08
20100226073851.HM.000000000... 07 Oct 20:20
  batch script red eye removal saulgoode@flashingtwelve.brickfilms.com 26 Feb 16:41
Wouter
2010-02-25 22:07:31 UTC (almost 15 years ago)

batch script red eye removal

Hello,

A long time ago I found a tutorial for Gimp on how to remove red eye by adding a layer with only the green and blue behind a picture and then selectively deleting the top layer with all RGB colours. I love this method, as it gives me great control and is very easy to do, but unfortunately it requires a lot of time-consuming steps.

Since I don't have much knowledge about Gimp and too little time to learn batch/script in Gimp, but some experience with AutoIt script, I wrote a script which does all the preparing steps for me, so all I have to do is manually 'decolour' the red areas and save the file. The script simply sends the required keypresses to Gimp.

To be even faster I'd love to have a batch file for gimp, which does all these preparing steps for me for any number of .jpg files and saves them as .xcf files. Then all I have to do is 'decolour' the red areas and save the file as .jpg.
It would save me a -lot- of waiting for the AutoIt script while editing pictures and would be more stable, because my script requires some timed inputs, which sometimes fail...

Is there someone willing to do me a huge favour and make this batch for me? I can provide a list with all the exact selections in Gimp and also provide the AutoIt script (for Windows) and source. That should reduce the amoount of work quite a lot and you can see and try for yourself what the script does and what I mean.

Many thanks in advance for any help and advice!

Frank Gore
2010-02-25 22:38:53 UTC (almost 15 years ago)

batch script red eye removal

On Thu, Feb 25, 2010 at 4:07 PM, Wouter wrote:

A long time ago I found a tutorial for Gimp on how to remove red eye by adding a layer with only the green and blue behind a picture and then selectively deleting the top layer with all RGB colours. I love this method, as it gives me great control and is very easy to do, but unfortunately it requires a lot of time-consuming steps.

But... isn't there red-eye reduction right there in Gimp 2.6?

Filters -> Enahnce -> Red Eye Removal

saulgoode@flashingtwelve.brickfilms.com
2010-02-26 05:08:09 UTC (almost 15 years ago)

batch script red eye removal

Quoting Wouter :

A long time ago I found a tutorial for Gimp on how to remove red eye by adding a layer with only the green and blue behind a picture and then selectively deleting the top layer with all RGB colours. I love this method, as it gives me great control and is very easy to do, but unfortunately it requires a lot of time-consuming steps.

Note that the same thing can be accomplished by setting your FG color to red, setting the Mode of the paintbrush to "Subtract", and painting on the layer (rather than using the eraser).

To be even faster I'd love to have a batch file for gimp, which does all these preparing steps for me for any number of .jpg files and saves them as .xcf files. Then all I have to do is 'decolour' the red areas and save the file as .jpg.

:

Is there someone willing to do me a huge favour and make this batch for me? I can provide a list with all the exact selections in Gimp and also provide the AutoIt script (for Windows) and source. That should reduce the amoount of work quite a lot and you can see and try for yourself what the script does and what I mean.

Since it is pretty much a pain to describe GIMP batch processing on Windows (owing to Windows weak command line functionality), I just wrote a script which adds a "Redeye Removal Backdrop" command to your Layer Menu. This command preps your layer as described and, since you need to open every file individually anyway, shouldn't be too difficult. You can assign the script to keystroke to make things easier (or just use either the Subtract paintbrush technique, or the GIMP's Red-eye Removal Filter under "Filters->Enhance").

http://flashingtwelve.brickfilms.com/GIMP/Scripts/Temp/sg-redeye-removal-backdrop.scm

saulgoode@flashingtwelve.brickfilms.com
2010-02-26 16:41:42 UTC (almost 15 years ago)

batch script red eye removal

Quoting wouter reubzaet :

I tried the subtract method a long time ago, but somehow the result is not the same.
I also tried your script and somehow get a different result from what my script does.
Here is a quick and dirty list in plain text of the steps my script carries out. I have listed the menu and mouse selections:

OK, when you are recomposing, the red channel is not being eliminated -- it is being replaced by the green channel. I have adjusted the script to do it this way.

I also modified the script to add the layermask (IMO, a much better approach than erasing as it leaves the original layer intact).

http://flashingtwelve.brickfilms.com/GIMP/Scripts/Temp/sg-redeye-removal-backdrop.scm