Re: [Gimp-user] Error with plug-in Advanced Tone Mapping



On 07/26/2018 06:05:50 PM, Gerald Brosseau wrote:
I have always the same error with the Advanced Tone Mapping on large image ! (14903 x 5239 last attemp image size @ 300dpi)

Erreur lors de l’exécution de script-fu-advanced-tone-mapping :

Error: Procedure execution of plug-in-gauss failed on invalid input arguments:

La procédure « plug-in-gauss » a été appelée avec la valeur « 906,390000 » pour le paramètre « horizontal »

(#4, type gdouble). Cette valeur est hors-limite.

Any hint to correct this problem?


Try to apply the following patch

--- advancedtonemapping.scm.ORIG 2018-07-26 19:44:43.970031861 +0200
+++ advancedtonemapping.scm     2017-12-17 16:28:38.000000000 +0100
@@ -45,7 +45,7 @@

 (define (my-duplicate-layer image layer)
        (let* ((dup-layer (car (gimp-layer-copy layer 1))))
-               (gimp-image-add-layer image dup-layer 0)
+               (gimp-image-insert-layer image dup-layer 0 0)
                dup-layer))

 (define (script-fu-advanced-tone-mapping
@@ -73,7 +73,7 @@
                )

                ;Apply the desaturate and invert to the top layer
-               (gimp-desaturate copy3)
+               (gimp-drawable-desaturate copy3 0)
                (gimp-invert copy3)

;Apply the blur with the supplied blur amount (in percents!)
@@ -108,7 +108,7 @@
                        ;Merge the last layer down
(let ((final (car (gimp-image-merge-down theImage merged 0)))) ;Name the layer so that we can see the parameters in its name
-                               (gimp-drawable-set-name final
+                               (gimp-item-set-name final
                                        (string-append
                                                "tmapd: g "
(number->string blurAmount)


With this it works on my Gimp-2.10.5 (GIT)
Helmut


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]