Skip to content

Commit 9d0b0a5

Browse files
authored
Minor bug fixes
1 parent 6294a5a commit 9d0b0a5

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

bercovich-lomo.scm

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
; Bercovich LOMO script for GIMP 2.4
55
; Copyright (C)March 2003 under GPL by Avi Bercovich <[email protected]>
66
;
7-
; Tags: photo, lomo
7+
; Tags: photo, lomo
88
;
99
; Author statement:
1010
;
@@ -35,17 +35,16 @@
3535

3636
(define (script-fu-lomo-berco image drawable fringeWidth fringeBoost)
3737

38-
(let*
39-
(
40-
(imgWidth (car (gimp-image-width image)))
41-
(imgHeight (car (gimp-image-height image)))
42-
43-
(midpoint_X (/ imgWidth 2))
44-
(midpoint_Y (/ imgHeight 2))
45-
46-
(l_whiteFlare (car (gimp-layer-new image imgWidth imgHeight RGBA-IMAGE "White flare" 100 0 )))
47-
(l_fringe (car (gimp-layer-new image imgWidth imgHeight RGBA-IMAGE "frame" 100 LAYER-MODE-NORMAL )))
48-
)
38+
(let* (
39+
(imgWidth (car (gimp-image-width image)))
40+
(imgHeight (car (gimp-image-height image)))
41+
42+
(midpoint_X (/ imgWidth 2))
43+
(midpoint_Y (/ imgHeight 2))
44+
45+
(l_whiteFlare (car (gimp-layer-new image imgWidth imgHeight RGBA-IMAGE "White flare" 100 0 )))
46+
(l_fringe (car (gimp-layer-new image imgWidth imgHeight RGBA-IMAGE "frame" 100 LAYER-MODE-NORMAL )))
47+
)
4948

5049

5150
(gimp-image-undo-group-start image)
@@ -75,7 +74,9 @@
7574
(gimp-image-insert-layer image (car (gimp-layer-copy l_fringe FALSE)) 0 0)
7675

7776
(if (= fringeBoost TRUE)
78-
(gimp-image-insert-layer image (car (gimp-layer-copy l_fringe FALSE)) 0 0)
77+
(begin
78+
(gimp-image-insert-layer image (car (gimp-layer-copy l_fringe FALSE)) 0 0)
79+
)
7980
)
8081

8182
; clean up.
@@ -89,15 +90,15 @@
8990

9091
(script-fu-register "script-fu-lomo-berco"
9192
"<Toolbox>/Script-Fu/Photo/Effects/Bercovich Lomo..."
92-
"Turn an image into a 'LOMO' snap. \nwww.lomography.com for those that are not sure what lomo's are.\nfile:bercovich-lomo.scm\nEnjoy!"
93+
"Turn an image into a 'LOMO' snap. \nGoogle lomography for those that are not sure what lomo's are.\nfile:bercovich-lomo.scm"
9394
"Avi Bercovich <[email protected]>"
9495
"Avi Bercovich"
9596
"April 2003"
9697
"RGB* GRAY* INDEXED*"
97-
SF-IMAGE "Image" 0
98-
SF-DRAWABLE "Drawable" 0
99-
SF-ADJUSTMENT "Fringe offset" '(4 1 10 1 10 0 1)
100-
SF-TOGGLE "Boost fringe?" FALSE
98+
SF-IMAGE "Image" 0
99+
SF-DRAWABLE "Drawable" 0
100+
SF-ADJUSTMENT "Fringe offset" '(4 1 10 1 10 0 1)
101+
SF-TOGGLE "Boost fringe?" FALSE
101102
)
102103

103104
; end of script

0 commit comments

Comments
 (0)