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

redeye.c and gimp-2.4

This discussion is connected to the gimp-developer-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 4 messages available
Toggle history

Please log in to manage your subscriptions.

redeye.c and gimp-2.4 Owen 11 Nov 07:54
  redeye.c and gimp-2.4 Owen 11 Nov 09:18
  redeye.c and gimp-2.4 Akkana Peck 11 Nov 18:14
   redeye.c and gimp-2.4 rcook@pcug.org.au 11 Nov 23:18
Owen
2007-11-11 07:54:15 UTC (about 17 years ago)

redeye.c and gimp-2.4

Tried updating Robert Merkel and Benoit Drooghaag's redeye.c into gimp-2.4 but it failed.

I have 2.4 in /opt and called gimptool with that prefix, didn't set any other environment variable

Here is a compile error

redeye.c: In function ‘remove_redeye’: redeye.c:380: warning: ISO C90 forbids mixed declarations and code

This is line 380

static void remove_redeye (GimpDrawable *drawable,GimpPreview *preview) { GimpPixelRgn src_rgn, dest_rgn;
guchar *src, *s;
guchar *dest, *d;
gint progress, max_progress; const gint red=0, green=1, blue=2; gint has_alpha, alpha;
gint x1, y1, x2, y2;
gint x, y;
gpointer pr;

And attempting to run the script produces an error dialogue

Procedure 'gimp-progress-init' has been called with a wrong value type for argument 'gdisplay' (#2). Expected GimpDisplayID, got GimpInt32.

There is a

gimp_progress_init ("Removing Redeye...");

which I presume refers back to the declaration. But I can't find a 'gdisplay' or 'GimpInt32' so they must be somewhere else

Can anyone give me a clue as to where to look

TIA

Owen

Owen
2007-11-11 09:18:33 UTC (about 17 years ago)

redeye.c and gimp-2.4

On Sun, 11 Nov 2007 17:54:15 +1100 Owen wrote:

Tried updating Robert Merkel and Benoit Drooghaag's redeye.c into gimp-2.4 but it failed.

I have 2.4 in /opt and called gimptool with that prefix, didn't set any other environment variable

Here is a compile error

redeye.c: In function ‘remove_redeye’: redeye.c:380: warning: ISO C90 forbids mixed declarations and code

And attempting to run the script produces an error dialogue

Procedure 'gimp-progress-init' has been called with a wrong value type for argument 'gdisplay' (#2). Expected GimpDisplayID, got GimpInt32.

The script functions in 2.4, just throws the error message above. So for my once in a year red eye removal needs, I don't think I will worry about it.

Sorry for the noise

Owen

Akkana Peck
2007-11-11 18:14:13 UTC (about 17 years ago)

redeye.c and gimp-2.4

Owen writes:

Tried updating Robert Merkel and Benoit Drooghaag's redeye.c into gimp-2.4 but it failed.

You know about Filters->Enhance->Red eye removal, standard with GIMP 2.4, I hope?

...Akkana

rcook@pcug.org.au
2007-11-11 23:18:55 UTC (about 17 years ago)

redeye.c and gimp-2.4

Owen writes:

Tried updating Robert Merkel and Benoit Drooghaag's redeye.c into gimp-2.4 but it failed.

You know about Filters->Enhance->Red eye removal, standard with GIMP 2.4, I hope?

No

Wasn't there!

Suspect it was removed during uninstalls of the old redeye.c :-(

Just rebuilt 2.4 and all is well again

Thank you

Owen