[Digikam-devel] [Bug 141439] Whishlist: A velvia similar plugin. AKA vivid saturation

Gilles Caulier caulier.gilles at kdemail.net
Mon Feb 12 08:54:57 GMT 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=141439         




------- Additional Comments From caulier.gilles kdemail net  2007-02-12 09:54 -------
hey guy,

I have take a look into the vivid saturation gimp plugin : it's a script scheme  plugin...

It's very simple gerhard. Look like the code is a few line :

(define (script-fu-vivid-saturation inImg inDrw inAmount)

  (let* (

	 (amount (/ inAmount 100)))

    (gimp-image-undo-group-start inImg)

    (plug-in-colors-channel-mixer TRUE inImg inDrw FALSE (+ 1 amount amount) (- amount) (- amount) (- amount) (+ 1 amount amount) (- amount) (- amount) (- amount) (+ 1 amount amount))

    (define (spline)
      (let* ((a (cons-array 8 'byte)))
	(set-pt a 0 0 0)
	(set-pt a 1 63 60)
	(set-pt a 2 191 194)
	(set-pt a 3 255 255)
	a))
  
    (gimp-curves-spline inDrw 0 8 (spline))

    (gimp-image-undo-group-end inImg)
    (gimp-displays-flush)
    )
  )


It's use color mixer and curve tools. both are include in digiKam and of course support 16 bits color depth (unlike gimp do!)

Gerhard, try to reproduce the plugin using digiKam tools by hand and give me your viewpoint. From a developper point, i can do it in 5 minutes (:=)))

Gilles



More information about the Digikam-devel mailing list