Bug 141439 - Whishlist: A velvia similar tool. AKA vivid saturation
Summary: Whishlist: A velvia similar tool. AKA vivid saturation
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Editor-ColorFX (show other bugs)
Version: 0.9.0
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-09 14:33 UTC by Juanma Font
Modified: 2022-01-12 21:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.9.2


Attachments
Experimental Velvia tool for image editor (5.79 KB, patch)
2007-03-08 17:11 UTC, caulier.gilles
Details
Velvia tool : Second version of the patch (5.79 KB, patch)
2007-03-08 18:01 UTC, caulier.gilles
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juanma Font 2007-02-09 14:33:32 UTC
Version:           0.9.0 (using KDE KDE 3.5.6)
Installed from:    Ubuntu Packages
OS:                Linux

This is an very cool plugin for photographers.

  You can get moore information (include code for gimp plugin ) here: http://www.trsqr.net/photokit/vs.html

  you can see better examples results here: http://www.fredmiranda.com/DV/index.html

   This effect AKA velvia film effect.

   Regards
Comment 1 Juanma Font 2007-02-09 14:38:41 UTC
Another good site to see how this effect work over LAB channel with examples and step by step.

  http://www.outbackphoto.com/workflow/wf_81/essay.html
   
Comment 2 Gerhard Kulzer 2007-02-09 23:20:18 UTC
Am Friday 09 February 2007 schrieb Juanma Font:
[bugs.kde.org quoted mail]
What is the interest of this plugin? I can reproduce the same thing and better 
with digikam. I can't see the use?

Gerhard
Comment 3 Mikolaj Machowski 2007-02-10 10:48:23 UTC
> [bugs.kde.org quoted mail]
> What is the interest of this plugin? I can reproduce the same thing and
> better with digikam. I can't see the use?


No. You cannot reliably reproduce the same thing in Digikam because in
Digikam you cannot operate in L*a*b space. And while I think such
specialized plugin (Velvia effect) wouldn't be very useful but
possibility to operate in L*a*b would be *very* welcome.
Comment 4 Gerhard Kulzer 2007-02-10 12:48:42 UTC
Am Saturday 10 February 2007 schrieb Mikolaj Machowski:
[bugs.kde.org quoted mail]
Sorry for my ignorance about L*a*b space. 
My comment originated from taking the examples on the internet and using 
digikam to reproduce the effect. With a bit of whitebalance, intensity and 
U-mask I got very quickly the (visually) same results.

Gerhard
Comment 5 Juanma Font 2007-02-10 13:58:30 UTC
A plugin that can reproduce the velvia effect will be very apreciated by a lot of photographers (I'm an amateur photograph and this effect is very used at gimp by photographers but whith the limitation of 8 bits).

   Of course, if we can operate at LAB space we can get the same ,but we need technical information about the process and, of course, this is something that many people don't have.

   
Comment 6 caulier.gilles 2007-02-10 14:03:44 UTC
Nota : digikam use lcms to handle color space. It's easy to toggle on LAB color space to perform color adjustement.

Gilles Caulier
Comment 7 Geoff King 2007-02-10 15:07:41 UTC
I agree with #5. It's always nice to have another more specialized color plugin.
Comment 8 Gerhard Kulzer 2007-02-12 09:47:10 UTC
I did some more testing with the Gimp eg-color saturation tool (which is supposedly the equivalent of velvia), and I changed my mind (see #4). My tests with the small images from the referenced websites did not reveal the power of the plugin. Now with high resolution images I can appreciate the worth of such a plugin, it is very desirable indeed.

Gerhard
Comment 9 caulier.gilles 2007-02-12 09:54:56 UTC
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
Comment 10 Juanma Font 2007-02-12 10:37:52 UTC
 Gilles Said 
    "From a developper point, i can do it in 5 minutes"

   Ohhhhh.... this is a very good new !!!!

   Any developer with five (or ten.... or thirty....) minutes ?

   Please....please....  I promise sent two beers ¡¡¡¡

  Regards

Comment 11 Gerhard Kulzer 2007-02-14 16:41:58 UTC
Am Monday 12 February 2007 schrieb Gilles Caulier:
[bugs.kde.org quoted mail]
Hi Gilles, 
I tried it with the mixer [took me a while to get back into the scheme syntax, 
it should be called script-fou :-)] and it works well. 
What I could not verify it the spline function (the channel mixing is applied 
in a contrast enhanced manner: more inthe highlights, less in the shadows). I 
think I cannot reproduce it manually, that must be done under the hood. But 
even without spline the result looks quite promissing.

These are the values I tried (20% accentation):
# Channel Mixer Configuration File
CHANNEL: BLUE
PREVIEW: true
MONOCHROME: false
PRESERVE_LUMINOSITY: false
RED: 1.400 -0.200 -0.200
GREEN: -0.200 1.400 -0.200
BLUE: -0.200 -0.200 1.400
BLACK: 1.000 0.000 0.000

In gimp I needed only 6% to achieve the same effect. I believe the rest comes 
through the contrast amplification.

my 10
Comment 12 caulier.gilles 2007-03-08 17:11:04 UTC
Created attachment 19909 [details]
Experimental Velvia tool for image editor

Gerhard, it don't work properlly. You need to adjust patameter in Channel
Mixer.

The new option is in Filter menu. Just compile and install patched image plugin
core.

Gilles
Comment 13 caulier.gilles 2007-03-08 18:01:49 UTC
Created attachment 19910 [details]
Velvia tool : Second version of the patch

This new verion work fine exactly like gimp (:=))

Of course the amount parameter is harcoded to 10.

Gerhard, feel free to adapt and improve this code, for example to provide a
Amount adjustment setting in a dialog. It's easy to do and you have a lot a
plugins source code in digikam to take inspiration (:=)))...

My 10cts €...

Gilles
Comment 14 caulier.gilles 2007-03-08 18:03:39 UTC
Gerhard, 

The Danamic Range Extender script-fu is also very easy to backport into digiKam...

Look here :

http://www.trsqr.net/photokit/dre.html

Gilles
Comment 15 caulier.gilles 2007-03-09 12:55:50 UTC
SVN commit 640901 by cgilles:

digikam from trunk : Solarize plugin is now a "Color Effects" tools pack witch include :

- Solarize Photograph.
- Simulate Velvia Color Film (Vivid Saturation).
- Simulate Neon light.
- Color Edge detection.

Future others Color algorithm will be add to this plugin. No need to create new one.

BUG: 141439

 M  +1 -1      digikamimageplugin_solarize.desktop  
 M  +463 -43   imageeffect_solarize.cpp  
 M  +59 -8     imageeffect_solarize.h  
 M  +3 -3      imageplugin_solarize.cpp