Skip to content

Commit 042327b

Browse files
authored
Minor errors corrected.
1 parent a3ffca5 commit 042327b

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

FU_artist_cutout.scm

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,16 @@
5555

5656
(gimp-image-undo-group-start img)
5757
(define indexed (car (gimp-drawable-is-indexed drawable)))
58-
(if (= indexed TRUE)(gimp-image-convert-rgb img))
58+
(if (= indexed TRUE)
59+
(gimp-image-convert-rgb img)
60+
)
61+
5962
(let* (
6063
(width (car (gimp-drawable-width drawable)))
6164
(height (car (gimp-drawable-height drawable)))
6265
(old-selection (car (gimp-selection-save img)))
6366
(image-type (car (gimp-image-base-type img)))
64-
(blur (* width smoothness 0.001 ))
67+
(blur (* (* width smoothness) 0.001 ))
6568
(layer-type (car (gimp-drawable-type drawable)))
6669
(layer-temp1 (car (gimp-layer-new img width height layer-type "temp1" 100 LAYER-MODE-NORMAL)))
6770
(img2 (car (gimp-image-new width height image-type)))
@@ -76,6 +79,8 @@
7679
(gimp-edit-copy drawable)
7780
(gimp-floating-sel-anchor (car (gimp-edit-paste layer-temp1 0)))
7881

82+
(gimp-message (number->string blur))
83+
7984
(plug-in-gauss 1 img layer-temp1 blur blur 0)
8085
(gimp-edit-copy layer-temp1)
8186

@@ -101,17 +106,20 @@
101106
(gimp-image-select-item img CHANNEL-OP-REPLACE old-selection)
102107
(gimp-image-remove-channel img old-selection)
103108

104-
(if (= inMerge TRUE)(gimp-image-merge-visible-layers img EXPAND-AS-NECESSARY))
109+
(if (= inMerge TRUE)
110+
(gimp-image-merge-visible-layers img EXPAND-AS-NECESSARY)
111+
)
105112
(gimp-image-undo-group-end img)
106113
(gimp-displays-flush)
114+
(gc) ; garbage cleanup; memory cleanup
107115
)
108116
)
109117

110118
(script-fu-register
111119
"FU-cutout"
112120
"<Toolbox>/Script-Fu/Artist/Cutout"
113121
"Creates a drawing effect of soft-edged, simplified colors. \nfile:FU_artist_cutout.scm"
114-
"Eddy Verlinden <[email protected]>"
122+
"Eddy Verlinden <[email protected]> Karlhof26 <[email protected]>"
115123
"Eddy Verlinden"
116124
"2007, juli"
117125
"*"

0 commit comments

Comments
 (0)