On 28 August 2011 08:47, Thomas Baruchel <baruc...@gmx.com> wrote:
> Hi, I am new to GEGL but I would be interested by writing XML
> scripts in order to perform some complex actions from the command
> line. I managed to make c2g work with XML scripts, but obviously
> the output is not the same than what I get from Gimp.
>
> Here are the two ways I found for making c2g work:
>
> gegl -o - -x "<gegl><node operation='gegl:c2g'><params><param 
> name='radius'>384</param><param name='samples'>10</param><param 
> name='iterations'>23</param><param name='rgamma'>1.8</param><param 
> name='strength'>1</param><param name='gamma'>1</param></params></node><node 
> operation='gegl:load'><params><param 
> name='path'>file.png</param></params></node></gegl>" | display -
>
>
> gegl -o - -x "<image><stack><filter type='gegl:c2g'><params><param 
> name='radius'>384</param><param name='samples'>10</param><param 
> name='iterations'>23</param><param name='rgamma'>1.8</param><param 
> name='strength'>1</param><param 
> name='gamma'>1</param></params></filter><layer 
> src='file.png'/></stack></image>" | display -
>
> As you can see, I use here the default settings from Gimp (except for 
> "samples" where I tried with 10 both in Gimp and here). However this single 
> operation
> performed on a picture doesn't give the same output. Do you have an
> explanation for that?

You are using the "GEGL operation" tool for this in GIMP, right?
I'm seeing the same behavior here, tested with your examples and with
the color-temperature operation. If there is no bug filed for this
issue, please file one.

> By the way, what is the most convenient way for having the input file from
> the standard input rather than setting its path in the XML file?
> There is such an example on http://gegl.org but I couldn't manage to get it
> work and I couldn't find what I had to change in my own command lines above
> to do it.
Using path = "-" on a load operation is meant to work for this
purpose. If it does not, that is a regression and is worth a bug
report.

> Best regards,
>
> --
> Thomas Baruchel
> _______________________________________________
> Gegl-developer mailing list
> gegl-develo...@lists.xcf.berkeley.edu
> https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer
>



-- 
Jon Nordby - www.jonnor.com
_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Reply via email to