Re: [Gimp-developer] Developer-User Disconnect

2007-12-03 Thread Alexandre Prokoudine
On Nov 30, 2007 3:13 PM, Raphaƫl Quinet wrote:

 designed for team collaboration.  The best choice would probably be TWiki
 (http://twiki.org/) but it is heavier than both MoinMoin and MediaWiki so I
 doubt that we would switch to that soon.

By the way, I'm just back from Open Translation Tools 2007 conference
in Zagreb where I spoke with Adam Hyde, who is founder of FLOSS
Manuals (http://flossmanuals.net/). FLOSS manuals uses twiki which
allows storing multilingual content in a sane way and outputting PDF,
HTML (zipped by request) and does a lot more stuff. But this is
probably a story for gimp-docs list.

Alexandre
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] Selectable white-balance adjust (was: Automatic white balance)

2007-12-03 Thread Toby Speight
0 In article [EMAIL PROTECTED],
0 Jean-Luc Coulon URL:mailto:[EMAIL PROTECTED] (Jean-Luc) wrote:

Jean-Luc A nice feature in this case would be to be able to get the
Jean-Luc white point in an OTHER picture.
Jean-Luc
Jean-Luc With digital photography, I use often raw pictures. At the
Jean-Luc beginning of the shot, I get a picture of a grey/white card
Jean-Luc which will be the white reference for all the following
Jean-Luc pictures.  If the light conditions change, I get an other
Jean-Luc picture of the grey chart and so I never mind of the camara
Jean-Luc white balance, all the wotk is done in post-processing.
Jean-Luc
Jean-Luc So it would be nice to be able to open a white reference
Jean-Luc picture and pick reference from this picture an apply it to
Jean-Luc the other shots.

I use a script that does this.  It's very simple and doesn't deal with
colour management, or extreme colours.  It is, however, simple to use -
just select the colour that should be white (e.g. with the picker), and
then run the plug-in.  It's particularly handy for your case, because
as long as you have the same selected foreground colour, you can run
the script on many images.  Here's the script-fu:

 cut here ---
; whitebalance.scm

; adjust image white balance based on current foreground color.

; Author: Toby Speight [EMAIL PROTECTED]
; Licence terms: GNU GPL v2 or later

(script-fu-register
 script-fu-whitebalance
 Image/Colors/_White Balance
 Adjust the image colors so that the current foreground color becomes 
completely desaturated.  In other words, if you have selected a color from the 
image that should be white, then this will correct any color cast.
 Toby Speight [EMAIL PROTECTED]
 Toby Speight
 2005-10-20
 RGB*
 SF-IMAGEImage0
 SF-DRAWABLE Drawable 0)

(define (script-fu-whitebalance img drawable)
  (let* ((color (car (gimp-context-get-foreground)))
 (red (car color))
 (blue (cadr color))
 (green (caddr color))
 (mean (/ (+ red blue green) 3.0)))
;; TODO: check for divide-by-zero
(plug-in-colors-channel-mixer
 1  img  drawable  0
 (/ mean red) 0.0   0.0
 0.0  (/ mean blue) 0.0
 0.0  0.0   (/ mean green))
(gimp-displays-flush)))


___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] dir(gimpfu.pdb) crashes

2007-12-03 Thread Joao S. O. Bueno
On Monday 03 December 2007 06:19:21 am Jayesh Salvi wrote:
 Hi,

 I am trying to see what all methods gimpfu.pdb offers, by running dir()
 operation on it. But it crashes as follows:

 [EMAIL PROTECTED] plug-ins]$
 PYTHONPATH=$PYTHONPATH:/usr/lib64/gimp/2.0/python python
 Python 2.5 (r25:51908, Apr 10 2007, 10:27:40)
 [GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2
 Type help, copyright, credits or license for more information.

  import gimpfu
  dir(gimpfu.pdb)

 LibGimpBase-ERROR **: gimp_wire_write_msg: the wire protocol has not been
 initialized
 aborting...
 Aborted

 [EMAIL PROTECTED] plug-ins]$ rpm -qf /usr/lib64/gimp/2.0/python
 gimp-2.4.2-1.fc7


 Does anyone know if this is known error? Is someone fixing it? I won't be
 using dir() operation in final code, but can this abort happen in other
 situations as well?

Gimpfu module can only be imported from a python console which is run under 
GIMP itself. Try that from the python console within GIMP.

js
--

 Thanks,
 Jayesh


___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer