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

Filtering image on parameter change

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.

Filtering image on parameter change Grzegorz Karch 13 Feb 00:10
  Filtering image on parameter change David Gowers (kampu) 13 Feb 05:44
   Filtering image on parameter change Joao S. O. Bueno 13 Feb 16:43
    Filtering image on parameter change Grzegorz Karch 13 Feb 20:50
Grzegorz Karch
2012-02-13 00:10:44 UTC (almost 13 years ago)

Filtering image on parameter change

Hi,

I'm working on a plugin for which I would like to have the image refreshed every time the user changes some parameter in the dialog. That is, instead of viewing changes in the preview window, I wouId like to see them in the working space, just like in the case of Brightness-Contrast filter (or any other in "Colors" menu). Could you give me any hints on which functions I need to use? Or is there any relevant example? I tried to look into the source code (gimpbrightnesscontrasttool.c, for instance) but I couldn't make head nor tail of it...

Regards, Grzegorz

David Gowers (kampu)
2012-02-13 05:44:21 UTC (almost 13 years ago)

Filtering image on parameter change

On Mon, Feb 13, 2012 at 10:40 AM, Grzegorz Karch wrote:

Hi,

I'm working on a plugin for which I would like to have the image refreshed every time the user changes some parameter in the dialog. That is, instead of viewing changes in the preview window, I wouId like to see them in the working space, just like in the case of Brightness-Contrast filter (or any other in "Colors" menu). Could you give me any hints on which functions I need to use? Or is there any relevant example? I tried to look into the source code (gimpbrightnesscontrasttool.c, for instance) but I couldn't make head nor tail of it...

The tools do that automatically cause they're tools.

Plugins don't and more-or-less can't. You'd be better off implementing your plugin as a GEGL op that GIMP can access (I don't recall offhand whether GIMP supports whatever ops are installed minus a blacklist, or just a fixed list of ops.); then you would get this behaviour through the GEGL tool.

Joao S. O. Bueno
2012-02-13 16:43:20 UTC (almost 13 years ago)

Filtering image on parameter change

On 13 February 2012 03:44, David Gowers (kampu) wrote:

On Mon, Feb 13, 2012 at 10:40 AM, Grzegorz Karch

wrote:

Hi,

I'm working on a plugin for which I would like to have the image refreshed every time the user changes some parameter in the dialog. That is, instead of viewing changes in the preview window, I wouId like to see them in the working space, just like in the case of Brightness-Contrast filter (or any other in "Colors" menu). Could you give me any hints on which functions I need to use? Or is there any relevant example? I tried to look into the source code (gimpbrightnesscontrasttool.c, for instance) but I couldn't make head nor tail of it...

The tools do that automatically cause they're tools.

Plugins don't and more-or-less can't. You'd be better off implementing your plugin as a GEGL op that GIMP can access (I don't recall offhand whether GIMP supports whatever ops are installed minus a blacklist, or just a fixed list of ops.); then you would get this behaviour through the GEGL tool.

It would be possible for a plug-in to use a custom made GTK+ dialog (as oposed to automated python-fu or script-fu dialogs) and have an "update" action which would actually create a new layer with the selection and apply the plug-in on this temporary layer. However, since you can't know the zoom level or visible area of any of the image views, your plug-in would actually have to process the whole selected area at full resolution, which could be slow to do in realtime.

The fact is current GIMP has no support for this "live preview" of plug-ins, but I believe it is an aim of a GEGLified GIMP where most plug-ins would be gegl ops.

js ->

_______________________________________________ gimp-developer-list mailing list
gimp-developer-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gimp-developer-list

Grzegorz Karch
2012-02-13 20:50:22 UTC (almost 13 years ago)

Filtering image on parameter change

Hi,

then I guess I will try to implement my plugin as GEGL tool. Thank you for your help!

Regards,
Grzegorz

W dniu 13 lutego 2012 17:43 użytkownik Joao S. O. Bueno napisał:

On 13 February 2012 03:44, David Gowers (kampu) wrote:

On Mon, Feb 13, 2012 at 10:40 AM, Grzegorz Karch < grzegorz.karch@gmail.com> wrote:

Hi,

I'm working on a plugin for which I would like to have the image refreshed every time the user changes some parameter in the dialog. That is, instead of viewing changes in the preview window, I wouId like to see them in the working space, just like in the case of Brightness-Contrast filter (or any other in "Colors" menu). Could you give me any hints on which functions I need to use? Or is there any relevant example? I tried to look into the source code (gimpbrightnesscontrasttool.c, for instance) but I couldn't make head nor tail of it...

The tools do that automatically cause they're tools.

Plugins don't and more-or-less can't. You'd be better off implementing your plugin as a GEGL op that GIMP can access (I don't recall offhand whether GIMP supports whatever ops are installed minus a blacklist, or just a fixed list of ops.); then you would get this behaviour through the GEGL tool.

It would be possible for a plug-in to use a custom made GTK+ dialog (as oposed to automated python-fu or script-fu dialogs) and have an "update" action which would actually create a new layer with the selection and apply the plug-in on this temporary layer. However, since you can't know the zoom level or visible area of any of the image views, your plug-in would actually have to process the whole selected area at full resolution, which could be slow to do in realtime.

The fact is current GIMP has no support for this "live preview" of plug-ins, but I believe it is an aim of a GEGLified GIMP where most plug-ins would be gegl ops.

js ->

_______________________________________________ gimp-developer-list mailing list
gimp-developer-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gimp-developer-list