4
4
; Bercovich LOMO script for GIMP 2.4
5
5
; Copyright (C)March 2003 under GPL by Avi Bercovich <[email protected] >
6
6
;
7
- ; Tags: photo, lomo
7
+ ; Tags: photo, lomo
8
8
;
9
9
; Author statement:
10
10
;
35
35
36
36
(define (script-fu-lomo-berco image drawable fringeWidth fringeBoost )
37
37
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
+ )
49
48
50
49
51
50
(gimp-image-undo-group-start image)
75
74
(gimp-image-insert-layer image (car (gimp-layer-copy l_fringe FALSE)) 0 0 )
76
75
77
76
(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
+ )
79
80
)
80
81
81
82
; clean up.
89
90
90
91
(script-fu-register " script-fu-lomo-berco"
91
92
" <Toolbox>/Script-Fu/Photo/Effects/Bercovich Lomo..."
92
- " Turn an image into a 'LOMO' snap. \n www. lomography.com for those that are not sure what lomo's are.\n file:bercovich-lomo.scm\n Enjoy! "
93
+ " Turn an image into a 'LOMO' snap. \n Google lomography for those that are not sure what lomo's are.\n file:bercovich-lomo.scm"
93
94
" Avi Bercovich <[email protected] >"
94
95
" Avi Bercovich"
95
96
" April 2003"
96
97
" 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
101
102
)
102
103
103
104
; end of script
0 commit comments