mirror of https://github.com/GNOME/gimp.git
Bug 747407 - Update use of gimp-desaturate PDB.
gimp-desaturate and gimp-brightness-contrast usage replaced with gimp-drawable-* based calls. gimp-drawable-desaturate calls updated to use desaturate mode (DESATURATE-LIGHTNESS) where it was not specified. gimp-drawble-brightness-contrast values scaled from previous -127/+127 range to current -0.5/0.5 range.
This commit is contained in:
parent
3565b33019
commit
1ce7fc6c77
|
@ -137,7 +137,7 @@
|
||||||
(begin
|
(begin
|
||||||
;--- add some brightness to whole text
|
;--- add some brightness to whole text
|
||||||
(if (= fadeout TRUE)
|
(if (= fadeout TRUE)
|
||||||
(gimp-brightness-contrast bl-layer 100 0)
|
(gimp-drawable-brightness-contrast bl-layer 0.787 0)
|
||||||
)
|
)
|
||||||
|
|
||||||
;--- blend glow color inside the letters
|
;--- blend glow color inside the letters
|
||||||
|
|
|
@ -3,16 +3,9 @@
|
||||||
;
|
;
|
||||||
; Circuit board effect
|
; Circuit board effect
|
||||||
; Copyright (c) 1997 Adrian Likins
|
; Copyright (c) 1997 Adrian Likins
|
||||||
; aklikins@eos.ncsu.ed
|
|
||||||
;
|
|
||||||
; Genrates what looks a little like the back of an old circuit board.
|
|
||||||
; Looks even better when gradmapped with a suitable gradient.
|
|
||||||
;
|
|
||||||
; This script doesn't handle or color combos well. ie, black/black
|
|
||||||
; doesn't work..
|
|
||||||
; The effect seems to work best on odd shaped selections because of some
|
|
||||||
; limitations in the maze codes selection handling ablity
|
|
||||||
;
|
;
|
||||||
|
; Generates what looks a little like the back of an old circuit board.
|
||||||
|
; Looks even better when gradient-mapp'ed with a suitable gradient.
|
||||||
;
|
;
|
||||||
; This program is free software: you can redistribute it and/or modify
|
; This program is free software: you can redistribute it and/or modify
|
||||||
; it under the terms of the GNU General Public License as published by
|
; it under the terms of the GNU General Public License as published by
|
||||||
|
@ -107,7 +100,7 @@
|
||||||
(plug-in-oilify RUN-NONINTERACTIVE image active-layer mask-size 0)
|
(plug-in-oilify RUN-NONINTERACTIVE image active-layer mask-size 0)
|
||||||
(plug-in-edge RUN-NONINTERACTIVE image active-layer 2 1 0)
|
(plug-in-edge RUN-NONINTERACTIVE image active-layer 2 1 0)
|
||||||
(if (= type RGBA-IMAGE)
|
(if (= type RGBA-IMAGE)
|
||||||
(gimp-desaturate active-layer))
|
(gimp-desaturate-drawable active-layer DESATURATE-LIGHTNESS))
|
||||||
|
|
||||||
(if (and
|
(if (and
|
||||||
(= remove-bg TRUE)
|
(= remove-bg TRUE)
|
||||||
|
|
|
@ -110,8 +110,8 @@
|
||||||
(car (gimp-layer-copy theLayer FALSE)) 0 -1)
|
(car (gimp-layer-copy theLayer FALSE)) 0 -1)
|
||||||
(gimp-layer-scale theLayer
|
(gimp-layer-scale theLayer
|
||||||
(- theWidth inSize) (- theHeight inSize) TRUE)
|
(- theWidth inSize) (- theHeight inSize) TRUE)
|
||||||
(gimp-desaturate theLayer)
|
(gimp-drawable-desaturate theLayer DESATURATE-LIGHTNESS)
|
||||||
(gimp-brightness-contrast theLayer 127 127)
|
(gimp-drawable-brightness-contrast theLayer 0.5 0.5)
|
||||||
(gimp-invert theLayer)
|
(gimp-invert theLayer)
|
||||||
(gimp-layer-resize theLayer
|
(gimp-layer-resize theLayer
|
||||||
theWidth
|
theWidth
|
||||||
|
|
|
@ -48,9 +48,9 @@
|
||||||
(set! theLayer (car (gimp-image-flatten theImage)))
|
(set! theLayer (car (gimp-image-flatten theImage)))
|
||||||
|
|
||||||
(if (= inSepia TRUE)
|
(if (= inSepia TRUE)
|
||||||
(begin (gimp-desaturate theLayer)
|
(begin (gimp-drawable-desaturate theLayer DESATURATE-LIGHTNESS)
|
||||||
(gimp-brightness-contrast theLayer -20 -40)
|
(gimp-drawable-brightness-contrast theLayer -0.078125 -0.15625)
|
||||||
(gimp-color-balance theLayer 0 TRUE 30 0 -30)
|
(gimp-drawable-color-balance theLayer TRANSFER-SHADOWS TRUE 30 0 -30)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
(set! theWidth (car (gimp-image-width theImage)))
|
(set! theWidth (car (gimp-image-width theImage)))
|
||||||
|
|
Loading…
Reference in New Issue