Allow imgflo to be used interactively in GIMP #10

Open
jonnor opened this Issue Apr 27, 2014 · 4 comments

Comments

Projects
None yet
1 participant
@jonnor
Member

jonnor commented Apr 27, 2014

After #9 is done, a natural extension is to see how one could integrate imgflo into GIMP, with Flowhub acting as a node-editor extension to it.
Would need to

  • Host the imgflo runtime in GIMP
  • Pass buffers/node referencs from GIMP to imgflo, and back

This may not be possible to achieve with the GIMP plugin API (as it is tailored for one-shot, non-interactive use), and would then require hooking into GIMP as a module/tool.
It may also require infrastructure work in GIMP to allow to get access to the GeglBuffer/GeglNodes for layers,masks etc.

@jonnor jonnor added the enhancement label Apr 28, 2014

@jonnor jonnor added the upstream label Jul 14, 2014

@jonnor jonnor added this to the Future milestone Jul 24, 2014

@jonnor

This comment has been minimized.

Show comment
Hide comment
@jonnor

jonnor Jan 20, 2015

Member

A useful intermediate step would be to be able to open Flowhub to develop new filters, and then be able to load these into GIMP without re-starting GIMP. This could probably be done as a GIMP plugin.

Member

jonnor commented Jan 20, 2015

A useful intermediate step would be to be able to open Flowhub to develop new filters, and then be able to load these into GIMP without re-starting GIMP. This could probably be done as a GIMP plugin.

@jonnor

This comment has been minimized.

Show comment
Hide comment
@jonnor

jonnor Apr 22, 2016

Member

It may be possible to use the generic GEGL op support in GIMP for this, it includes live on-canvas preview and property editing.
Then we'd need to provide a GeglOperation which contains the full imgflo runtime, including starting a WebSocket server. Ideally we'd provide a live-mode URL to click, which would open brower with Flowhub connecting to the runtime of that node. Making changes should now be automatically reflected in the GIMP preview.
There should be configurable parameters for WebSocket port (default: 0, meaning auto?) and the URL for the ide (default: http://app.flowhub.io).

Member

jonnor commented Apr 22, 2016

It may be possible to use the generic GEGL op support in GIMP for this, it includes live on-canvas preview and property editing.
Then we'd need to provide a GeglOperation which contains the full imgflo runtime, including starting a WebSocket server. Ideally we'd provide a live-mode URL to click, which would open brower with Flowhub connecting to the runtime of that node. Making changes should now be automatically reflected in the GIMP preview.
There should be configurable parameters for WebSocket port (default: 0, meaning auto?) and the URL for the ide (default: http://app.flowhub.io).

@jonnor

This comment has been minimized.

Show comment
Hide comment
@jonnor

jonnor Apr 22, 2016

Member

An open question is how to get the live-url to show up in the UI. It is computed from the parameters. Maybe it can be done through a param which we dynamically change? Should then have a URI param type and show those linkified and clickable. Alternatively could fire a signal but this requires custom code to catch on the application side. For proof-of-concept one can maybe just trigger opening of the browser from inside the op.

Member

jonnor commented Apr 22, 2016

An open question is how to get the live-url to show up in the UI. It is computed from the parameters. Maybe it can be done through a param which we dynamically change? Should then have a URI param type and show those linkified and clickable. Alternatively could fire a signal but this requires custom code to catch on the application side. For proof-of-concept one can maybe just trigger opening of the browser from inside the op.

@jonnor

This comment has been minimized.

Show comment
Hide comment
@jonnor

jonnor Apr 22, 2016

Member

Since some weeks back gegl:gegl allows building GEGL pipelines/graphs live inside GIMP. It also uses a property to communicate error messages out of the operation, so that suggests this would be possible for live url as well.

Member

jonnor commented Apr 22, 2016

Since some weeks back gegl:gegl allows building GEGL pipelines/graphs live inside GIMP. It also uses a property to communicate error messages out of the operation, so that suggests this would be possible for live url as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment