Re: [Gimp-developer] libgimp

2006-07-20 Thread Frédéric
On Thursday 20 July 2006 04:28, Mariano Cuenze wrote:
 Frédéric:
  May be. I had looked at GEGL, but it is like a low level
 api for image manipulation, if I unterstood well, for a simple task
 (like, add a mask), you have to do a long sequence of operations. With
 GEGL you have to talk with it using a DAG, in wicth images are edges,
 and operations are nodes, its sound like a very complex task (and you
 have to know about image proccessing). If it is the way, I will use it
 and I will add a layer to make things a litle bit more easy to the
 user of this 'extension'. It is just, I think I have to know a lot
 about digital image proccessing to make a correct use of GEGL. I
 believe that if gimp will use it, and I can develop a thing that can
 'talk' with GIMP, that will be perfect. Again, I know a little about
 those topics, if it is the recomended way to use GEGL or if I
 misunderstood about GECL function, I will use it instead GIMP.
 Please, if you can clarify the subject to me, that will be
 nice. Thanks again.

I'm afraid I can't help you more, as I'm not a gimp/GEGL developper: I 
don't know where GEGL will stop, and where Gimp will start.

Only Sven and Pippin can answer...

Cheers,

-- 
   Frédéric

   http://www.gbiloba.org


pgpSUO8P7H5N5.pgp
Description: PGP signature
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] libGimp

2006-07-19 Thread Frédéric
On Wednesday 19 July 2006 08:29, Sven Neumann wrote:

  Gimp is a very nice development, and a great tool, I know its
  possible to use it like a user (thought its user interface), add it
  plug-ins (in scheme or python), and use it in a batch mode. But I want
  to extend it to allow to use its api from another program (suppose i
  had a console program and I need to edit a photograph, it would be
  nice to have access to a libgimp utility -and all its dependencies
  files- with the minimum install process).

 I think you misunderstood what libgimp is doing. There is no image
 manipulation functionality in libgimp. libgimp is just used to allow the
 GIMP core and it's plug-ins to communicate. Without the GIMP core
 running, libgimp is useless. So you can't build an application, link to
 libgimp and use all the GIMP functionality. What you can do is to write
 a plug-in that communicates with a running GIMP process (or even to
 gimp-console, which is a gimp binary without the user interface).

Does GEGL work like Mariano thought libgimp work? In that case, it is maybe 
a better idea to start looking at GEGL, has it will be, in the future, the 
image manipulation library used in The Gimp...

-- 
   Frédéric

   http://www.gbiloba.org


pgpjSzcOUiISw.pgp
Description: PGP signature
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] libGimp

2006-07-19 Thread Mariano Cuenze
Sven: Really, thanks for your repply. Yes, I misunderstood. Then suppose that I develop that plug-in, something that allow an interproccess comunication with the GIMP, i still will have to install the GIMP, to start it in some way, and then to use it. I wonder if it is a good solution to use interproccess comunication instead of link or add it to a project (may be I cant still see the dimension of the task). Is it more difficult? or is there nothing developed that will make more easy the task? or is it impossible for some reason? or the plug in way can be a good starting point?
 Another possibility can be: add to the gimp-console, this plug-in ability, or develop something like the gimp-console with this functionality, and allow it to be compiled like a library. But, if the way is a plug-in, it must have two parts: one (that must be installed in GIMP) that is responsible to expose the GIMP functionality, information about the environment (the plug-ins installed, the GIMP version,..). And a client part, that encapsulate the interproccess comunication. Because the GIMP runs on a big amount of systems, do you recommend something about the kind of ic that is the best to use? GIOChannel? signals? socket? pipe? another? In some point, the idea is, form a console test program, and like the first possible step:
#include gimp_remoteclient.hint main (void){ Gimp_Remote_Start ( ); Gimp_Image aGImg = Gimp_Remote_OpenImage ( aImg.png ); /*in a future, add image manipulation, filters and layer access,...*/
 Gimp_Remote_SaveImageAs ( aGImg, AImg2.png, Gimp_ImageFormat::PNG ); Gimp_Remote_End ( ); return 0;} I am sorry about my little knowledge about this idea and how to implement it -I really want to extend GIMP in this direction, I think it will be very nice.
 Thanks in advance. Mariano.On 7/19/06, Sven Neumann [EMAIL PROTECTED]
 wrote:Hi,On Sun, 2006-07-16 at 17:08 -0300, Mariano Cuenze wrote:
 Gimp is a very nice development, and a great tool, I know its possible to use it like a user (thought its user interface), add it plug-ins (in scheme or python), and use it in a batch mode. But I want
 to extend it to allow to use its api from another program (suppose i had a console program and I need to edit a photograph, it would be nice to have access to a libgimp utility -and all its dependencies
 files- with the minimum install process).I think you misunderstood what libgimp is doing. There is no imagemanipulation functionality in libgimp. libgimp is just used to allow theGIMP core and it's plug-ins to communicate. Without the GIMP core
running, libgimp is useless. So you can't build an application, link tolibgimp and use all the GIMP functionality. What you can do is to writea plug-in that communicates with a running GIMP process (or even to
gimp-console, which is a gimp binary without the user interface).Sven
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] libGimp

2006-07-16 Thread Mariano Cuenze
Hi. I am new in this list. I had subscribed because i want to use the gimp in a way I had found little documentation (maybe i had looked for it in a wrong way ). Gimp is a very nice development, and a great tool, I know its possible to use it like a user (thought its user interface), add it plug-ins (in scheme or python), and use it in a batch mode. But I want to extend it to allow to use its api from another program (suppose i had a console program and I need to edit a photograph, it would be nice to have access to a libgimp utility -and all its dependencies files- with the minimum install process).
 Why? I am trying to develop a mozilla component to add this feature. I hope the short description above its enough clear to ask you: any tips or suggestions for this task? I think its a big and complex task but I want to try.
 Thanks in advance. Mariano.
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] Libgimp newbie development path

2005-10-17 Thread David Neary


Hi,

s s said:

I'm hoping to develop an application that leverages the Gimp's
functionality, but uses its own GUI and some other libraries.  My
ideal situation would be this:

- The user opens my application and the only reference to the Gimp
that can be directly seen by them are Gimp licensing requirements,
while my application would be using the Gimp behind the scenes for
basic image manipulation handling.


You might want to look at Seashore, a Mac application which uses some of 
the GIMP internals (notably the file format  image structure). That 
might give you some ideas.



My current idea is to develop a plugin for the Gimp which uses my
GUI(not using GTK).  I'm basing this off of the Gimp pluggin
development samples and tutorials available.  However, is this the
correct path I should be taking?  Will I be able to start the pluggin
from my app without having the user manually open it from the Gimp?


No - plug-ins are standalone apps that communicate with an already 
running GIMP.



Finally, is there a better way to use libgimp so that I can just use
Gimp functionality from my application without having to startup the
full Gimp application and use a pluggin?


Afraid not - short of cutting  pasting code (which is possible). Lots 
of libgimp has no GTK+ dependency - adding a different GUI should be 
doable, but hard.


Cheers,
Dave.

--
Dave Neary
[EMAIL PROTECTED]
Lyon, France
___
Gimp-developer mailing list
Gimp-developer@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


[Gimp-developer] Libgimp newbie development path

2005-10-16 Thread s s
I'm hoping to develop an application that leverages the Gimp's
functionality, but uses its own GUI and some other libraries. My
ideal situation would be this:

- The user opens my application and the only reference to the Gimp that
can be directly seen by them are Gimp licensing requirements, while my
application would be using the Gimp behind the scenes for basic image
manipulation handling.

My current idea is to develop a plugin for the Gimp which uses my
GUI(not using GTK). I'm basing this off of the Gimp pluggin
development samples and tutorials available. However, is this the
correct path I should be taking? Will I be able to start the
pluggin from my app without having the user manually open it from the
Gimp? Finally, is there a better way to use libgimp so that I can
just use Gimp functionality from my application without having to
startup the full Gimp application and use a pluggin?