This file is indexed.

/usr/share/gimp/2.0/scripts/bercovich-lomo.scm is in gimp-plugin-registry 7.20140602ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
;
; The GIMP -- an image manipulation program
; Copyright (C) 1995 Spencer Kimball and Peter Mattis
;
; Bercovich LOMO script  for GIMP 2.4
; Copyright (C)March 2003 under GPL by Avi Bercovich <avi@sillypages.org>
;
; Tags: photo, lomo
;
; Author statement:
;
; A Script-Fu script to turn a GIMP-image into a 'LOMO' snap.
;
; --------------------------------------------------------------------
; Distributed by Gimp FX Foundry project
; --------------------------------------------------------------------
;   - Changelog -
;
; --------------------------------------------------------------------
;
;    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
;    the Free Software Foundation, either version 3 of the License, or
;    (at your option) any later version.
;
;    This program is distributed in the hope that it will be useful,
;    but WITHOUT ANY WARRANTY; without even the implied warranty of
;    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;    GNU General Public License for more details.
;
;    You should have received a copy of the GNU General Public License
;    along with this program.  If not, see <http://www.gnu.org/licenses/>.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(define (script-fu-lomo image drawable fringeWidth fringeBoost)

(let*
     (
         (imgWidth (car (gimp-image-width image)))
        (imgHeight (car (gimp-image-height image)))

        (midpoint_X (/ imgWidth 2))
        (midpoint_Y (/ imgHeight 2))

        (l_whiteFlare (car (gimp-layer-new image imgWidth imgHeight RGBA-IMAGE "White flare" 100 0 )))
        (l_fringe (car (gimp-layer-new image imgWidth imgHeight RGBA-IMAGE "frame" 100 NORMAL-MODE )))
     )


(gimp-image-undo-group-start image)

; adjust colours
(gimp-color-balance drawable SHADOWS TRUE 30 0 0)
(gimp-brightness-contrast drawable 0 30)

; draw whiteFlare layer
(gimp-drawable-fill l_whiteFlare TRANSPARENT-FILL)
(gimp-image-add-layer image l_whiteFlare 0)
(gimp-context-set-foreground '(255 255 255) )
(gimp-edit-blend l_whiteFlare 2 NORMAL-MODE GRADIENT-RADIAL 100 0 REPEAT-NONE FALSE FALSE 0 0 FALSE midpoint_X midpoint_Y imgWidth imgHeight)
(gimp-layer-set-mode l_whiteFlare OVERLAY-MODE)
(gimp-layer-set-opacity l_whiteFlare 80)

; draw fringe
(gimp-drawable-fill l_fringe TRANSPARENT-FILL)
(gimp-image-add-layer image l_fringe 0)
(gimp-rect-select image (+ 0 fringeWidth) (+ 0 fringeWidth) (- imgWidth (* 2 fringeWidth)) (- imgHeight (* 2 fringeWidth)) CHANNEL-OP-ADD TRUE (abs (/ imgWidth 10)))
(gimp-selection-invert image)
(gimp-context-set-foreground '(0 0 0))
(gimp-edit-bucket-fill l_fringe FG-BUCKET-FILL NORMAL-MODE 100 0 FALSE 0 0)
(gimp-selection-none image)
(gimp-layer-set-mode l_fringe OVERLAY-MODE)
(gimp-image-add-layer image (car (gimp-layer-copy l_fringe FALSE)) 0)

(if (= fringeBoost TRUE)
    (gimp-image-add-layer image (car (gimp-layer-copy l_fringe FALSE)) 0))

; clean up.
(gimp-image-undo-group-end image)

; flush display to the user
(gimp-displays-flush)

)
)

(script-fu-register "script-fu-lomo"
            _"Bercovich Lomo..."
            _"Turn an image into a 'LOMO' snap. \n\nwww.lomography.com for those that are not sure what lomo's are.\n\nEnjoy!"
            "Avi Bercovich <avi@sillypages.org>"
            "Avi Bercovich"
            "April 2003"
            "RGB* GRAY* INDEXED*"
            SF-IMAGE "Image" 0
            SF-DRAWABLE "Drawable" 0
                SF-ADJUSTMENT "Fringe offset" '(4 1 10 1 10 0 1)
                SF-TOGGLE "Boost fringe?" FALSE
)

(script-fu-menu-register "script-fu-lomo"
                         "<Image>/FX-Foundry/Photo/Effects")