|
1 | 1 | ; HDR Fake Effect is a script for The GIMP
|
2 |
| -; |
| 2 | +; |
3 | 3 | ; This script produces a fake HDR effect + on an image
|
4 | 4 | ;
|
5 |
| -; Follow the tut of [email protected] |
| 5 | +; Follow the tut of [email protected] |
6 | 6 | ; here the link :
|
7 | 7 | ; http://gimpology.com/submission/view/fake_hdr_look_in_gimp/
|
8 | 8 | ;
|
|
62 | 62 | (merged)
|
63 | 63 | )
|
64 | 64 |
|
65 |
| - |
66 | 65 | ;Rename the layer
|
67 | 66 | (gimp-drawable-set-name firstTemp "First temp")
|
68 | 67 |
|
|
85 | 84 | ;Change the mode of the thin layer to lighten
|
86 | 85 | (gimp-layer-set-mode thinTemp 10)
|
87 | 86 |
|
88 |
| - ;Change the mode of the thin layer to darken |
89 |
| - (gimp-layer-set-mode thinTemp 9) |
| 87 | + ;else |
| 88 | + (begin |
| 89 | + ;Change the mode of the thin layer to darken |
| 90 | + ;(gimp-layer-set-mode thinTemp 9) |
| 91 | + (gimp-layer-set-mode thinTemp LAYER-MODE-DARKEN-ONLY) |
| 92 | + ) |
90 | 93 | )
|
91 | 94 |
|
92 | 95 |
|
|
104 | 107 | (set! merged (car (gimp-image-merge-down myImage thinTemp 0)))
|
105 | 108 |
|
106 | 109 | ;Change the mode of the dodge copy layer to difference mode
|
107 |
| - (gimp-layer-set-mode merged 6) |
| 110 | + ;(gimp-layer-set-mode merged 6) |
| 111 | + (gimp-layer-set-mode merged LAYER-MODE-DIFFERENCE) |
108 | 112 |
|
109 | 113 | ;Merge the top layer down and keep track of the newly merged layer
|
110 | 114 | (set! merged (car (gimp-image-merge-down myImage merged 0)))
|
|
186 | 190 |
|
187 | 191 | (gimp-image-set-active-layer inImage theNewlayer3)
|
188 | 192 | (set! subdra (gimp-hue-saturation theNewlayer3 0 0 0 statunum))
|
189 |
| - (set! subdra (gimp-levels theNewlayer3 HISTOGRAM-VALUE lev5min lev5max 1.0 0 255)) |
| 193 | + ;(set! subdra (gimp-levels theNewlayer3 HISTOGRAM-VALUE lev5min lev5max 1.0 0 255)) |
| 194 | + (set! subdra (gimp-drawable-levels theNewlayer3 HISTOGRAM-VALUE (/ lev5min 255) (/ lev5max 255) FALSE 1.0 0.0 1.0 FALSE)) |
190 | 195 |
|
191 | 196 | (gimp-image-flatten inImage)
|
192 | 197 | ;Finish the undo group for the process
|
|
200 | 205 |
|
201 | 206 | (script-fu-register
|
202 | 207 | "script-fu-fake-hdr-effect-plus"
|
203 |
| - "<Image>/Script-Fu/Enhance/Fake HDR Effect plus..." |
| 208 | + "<Toolbox>/Script-Fu/Enhance/Fake HDR Effect plus..." |
204 | 209 | "Make a photo to fake HDR with GIMP. This is the PLus version. \nfile:hdr-eff-plus.scm"
|
205 | 210 | "Bui The Thang <[email protected]>"
|
206 | 211 | "Bui The Thang"
|
|
0 commit comments