mirror of https://github.com/GNOME/gimp.git
script-fu: drop gimp.org header and label scripts
These scripts used to be used to create graphics for the old gimp.org web-page that has long been redone several times. There is no point in distributing these scripts any longer.
This commit is contained in:
parent
a179537e29
commit
799a7fc5a8
|
@ -52,8 +52,6 @@ scripts = \
|
|||
font-map.scm \
|
||||
frosty-logo.scm \
|
||||
fuzzyborder.scm \
|
||||
gimp-headers.scm \
|
||||
gimp-labels.scm \
|
||||
gimp-online.scm \
|
||||
glossy.scm \
|
||||
glowing-logo.scm \
|
||||
|
|
|
@ -1,192 +0,0 @@
|
|||
; GIMP - The GNU Image Manipulation Program
|
||||
; Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
;
|
||||
; www.gimp.org web headers
|
||||
; Copyright (c) 1997 Adrian Likins
|
||||
; aklikins@eos.ncsu.edu
|
||||
;
|
||||
; based on a idea by jtl (Jens Lautenbacher)
|
||||
; and improved by jtl
|
||||
;
|
||||
; 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/>.
|
||||
;
|
||||
; **NOTE** This fonts use some very common fonts, that are typically
|
||||
; bitmap fonts on most installations. If you want better quality versions
|
||||
; you need to grab the urw font package form www.gimp.org/fonts.html
|
||||
; and install as indicated. This will replace the some current bitmap fonts
|
||||
; with higher quality vector fonts. This is how the actual www.gimp.org
|
||||
; logos were created.
|
||||
;
|
||||
; ************************************************************************
|
||||
; Changed on Feb 4, 1999 by Piet van Oostrum <piet@cs.uu.nl>
|
||||
; For use with GIMP 1.1.
|
||||
; All calls to gimp-text-* have been converted to use the *-fontname form.
|
||||
; The corresponding parameters have been replaced by an SF-FONT parameter.
|
||||
; ************************************************************************
|
||||
|
||||
(define (script-fu-headers-gimp-org text font font-size text-color high-color side-color shadow-color crop rm-bg index num-colors)
|
||||
(let* (
|
||||
(img (car (gimp-image-new 256 256 RGB)))
|
||||
(text-layer (car (gimp-text-fontname img -1 0 0
|
||||
text 30 TRUE font-size PIXELS
|
||||
font)))
|
||||
(width (car (gimp-drawable-width text-layer)))
|
||||
(height (car (gimp-drawable-height text-layer)))
|
||||
(bg-layer (car (gimp-layer-new img width height RGB-IMAGE "Background" 100 NORMAL-MODE)))
|
||||
)
|
||||
|
||||
(gimp-context-push)
|
||||
|
||||
(gimp-image-undo-disable img)
|
||||
(gimp-image-resize img width height 0 0)
|
||||
(gimp-image-add-layer img bg-layer 1)
|
||||
(gimp-layer-set-lock-alpha text-layer TRUE)
|
||||
(gimp-context-set-background text-color)
|
||||
(gimp-edit-fill text-layer BACKGROUND-FILL)
|
||||
|
||||
(gimp-context-set-background '(255 255 255))
|
||||
(gimp-edit-fill bg-layer BACKGROUND-FILL)
|
||||
|
||||
(let* (
|
||||
(highlight-layer (car (gimp-layer-copy text-layer TRUE)))
|
||||
(side-layer (car (gimp-layer-copy text-layer TRUE)))
|
||||
(shadow-layer (car (gimp-layer-copy text-layer TRUE)))
|
||||
)
|
||||
|
||||
(gimp-image-add-layer img highlight-layer 1)
|
||||
(gimp-layer-set-lock-alpha highlight-layer TRUE)
|
||||
|
||||
(gimp-image-add-layer img side-layer 1)
|
||||
(gimp-layer-set-lock-alpha side-layer TRUE)
|
||||
|
||||
(gimp-image-add-layer img shadow-layer 1)
|
||||
(gimp-layer-set-lock-alpha shadow-layer TRUE)
|
||||
|
||||
(gimp-context-set-background high-color)
|
||||
(gimp-edit-fill highlight-layer BACKGROUND-FILL)
|
||||
(gimp-layer-translate highlight-layer -1 -1)
|
||||
|
||||
(gimp-context-set-background side-color)
|
||||
(gimp-edit-fill side-layer BACKGROUND-FILL)
|
||||
(gimp-layer-translate side-layer 1 1)
|
||||
|
||||
(gimp-context-set-background shadow-color)
|
||||
(gimp-edit-fill shadow-layer BACKGROUND-FILL)
|
||||
(gimp-layer-translate shadow-layer 5 5)
|
||||
|
||||
(gimp-layer-set-lock-alpha shadow-layer FALSE)
|
||||
(plug-in-gauss-rle RUN-NONINTERACTIVE img shadow-layer 5 TRUE TRUE)
|
||||
(gimp-layer-set-opacity shadow-layer 60)
|
||||
(gimp-image-lower-layer img shadow-layer)
|
||||
(gimp-image-lower-layer img shadow-layer)
|
||||
)
|
||||
|
||||
|
||||
(set! text-layer (car (gimp-image-flatten img)))
|
||||
(gimp-layer-add-alpha text-layer)
|
||||
|
||||
|
||||
(if (= rm-bg TRUE)
|
||||
(begin
|
||||
(gimp-by-color-select text-layer '(255 255 255)
|
||||
1 CHANNEL-OP-REPLACE TRUE FALSE 0 FALSE)
|
||||
(gimp-edit-clear text-layer)
|
||||
(gimp-selection-none img)
|
||||
)
|
||||
)
|
||||
|
||||
(if (= crop TRUE)
|
||||
(plug-in-autocrop RUN-NONINTERACTIVE img text-layer)
|
||||
)
|
||||
|
||||
(if (= index TRUE)
|
||||
(gimp-image-convert-indexed img FS-DITHER MAKE-PALETTE num-colors
|
||||
FALSE FALSE "")
|
||||
)
|
||||
|
||||
|
||||
(gimp-image-undo-enable img)
|
||||
(gimp-display-new img)
|
||||
|
||||
(gimp-context-pop)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
(define (script-fu-big-header-gimp-org text font font-size text-color
|
||||
high-color side-color shadow-color
|
||||
crop rm-bg index num-colors)
|
||||
(script-fu-headers-gimp-org (string-append " " text)
|
||||
font font-size
|
||||
text-color high-color side-color shadow-color
|
||||
crop rm-bg index num-colors)
|
||||
)
|
||||
|
||||
|
||||
(define (script-fu-small-header-gimp-org text font font-size text-color
|
||||
high-color side-color shadow-color
|
||||
crop rm-bg index num-colors)
|
||||
(script-fu-headers-gimp-org text font
|
||||
font-size text-color high-color
|
||||
side-color shadow-color
|
||||
crop rm-bg index num-colors)
|
||||
)
|
||||
|
||||
|
||||
(script-fu-register "script-fu-big-header-gimp-org"
|
||||
_"_Big Header..."
|
||||
_"Create an image of a large header using the gimp.org webpage theme"
|
||||
"Adrian Likins & Jens Lautenbacher"
|
||||
"Adrian Likins & Jens Lautenbacher"
|
||||
"1997"
|
||||
""
|
||||
SF-STRING _"Text" "gimp.org"
|
||||
SF-FONT _"Font" "Serif"
|
||||
SF-ADJUSTMENT _"Font size (pixels)" '(50 2 1000 1 10 0 1)
|
||||
SF-COLOR _"Text color" '(82 108 159)
|
||||
SF-COLOR _"Highlight color" '(190 220 250)
|
||||
SF-COLOR _"Dark color" '(46 74 92)
|
||||
SF-COLOR _"Shadow color" "black"
|
||||
SF-TOGGLE _"Autocrop" TRUE
|
||||
SF-TOGGLE _"Remove background" TRUE
|
||||
SF-TOGGLE _"Index image" TRUE
|
||||
SF-ADJUSTMENT _"Number of colors" '(15 2 255 1 10 0 1)
|
||||
)
|
||||
|
||||
(script-fu-menu-register "script-fu-big-header-gimp-org"
|
||||
"<Image>/File/Create/Web Page Themes/Classic.Gimp.Org")
|
||||
|
||||
(script-fu-register "script-fu-small-header-gimp-org"
|
||||
_"_Small Header..."
|
||||
_"Create an image of a small header using the gimp.org webpage theme"
|
||||
"Adrian Likins & Jens Lautenbacher"
|
||||
"Adrian Likins & Jens Lautenbacher"
|
||||
"1997"
|
||||
""
|
||||
SF-STRING _"Text" "gimp.org"
|
||||
SF-FONT _"Font" "Sans"
|
||||
SF-ADJUSTMENT _"Font size (pixels)" '(24 2 1000 1 10 0 1)
|
||||
SF-COLOR _"Text color" '(135 220 220)
|
||||
SF-COLOR _"Highlight color" '(210 240 245)
|
||||
SF-COLOR _"Dark color" '(46 74 92)
|
||||
SF-COLOR _"Shadow color" "black"
|
||||
SF-TOGGLE _"Autocrop" TRUE
|
||||
SF-TOGGLE _"Remove background" TRUE
|
||||
SF-TOGGLE _"Index image" TRUE
|
||||
SF-ADJUSTMENT _"Number of colors" '(15 2 255 1 10 0 1)
|
||||
SF-ADJUSTMENT _"Select-by-color threshold" '(1 1 256 1 10 0 1)
|
||||
)
|
||||
|
||||
(script-fu-menu-register "script-fu-small-header-gimp-org"
|
||||
"<Image>/File/Create/Web Page Themes/Classic.Gimp.Org")
|
|
@ -1,190 +0,0 @@
|
|||
; GIMP - The GNU Image Manipulation Program
|
||||
; Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
;
|
||||
; www.gimp.org web labels
|
||||
; Copyright (c) 1997 Adrian Likins
|
||||
; aklikins@eos.ncsu.edu
|
||||
;
|
||||
; based on a idea by jtl (Jens Lautenbacher)
|
||||
; and improved by jtl
|
||||
;
|
||||
; 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/>.
|
||||
;
|
||||
; **NOTE** This fonts use some very common fonts, that are typically
|
||||
; bitmap fonts on most installations. If you want better quality versions
|
||||
; you need to grab the urw font package form www.gimp.org/fonts.html
|
||||
; and install as indicated. This will replace the some current bitmap fonts
|
||||
; with higher quality vector fonts. This is how the actual www.gimp.org
|
||||
; logos were created.
|
||||
;
|
||||
; ************************************************************************
|
||||
; Changed on Feb 4, 1999 by Piet van Oostrum <piet@cs.uu.nl>
|
||||
; For use with GIMP 1.1.
|
||||
; All calls to gimp-text-* have been converted to use the *-fontname form.
|
||||
; The corresponding parameters have been replaced by an SF-FONT parameter.
|
||||
; ************************************************************************
|
||||
|
||||
|
||||
(define (script-fu-labels-gimp-org text font font-size text-color
|
||||
shadow-color bg-color rm-bg index
|
||||
num-colors color-thresh yoff xoff height)
|
||||
(let* (
|
||||
(img (car (gimp-image-new 125 height RGB)))
|
||||
(text-layer (car (gimp-text-fontname img -1 xoff yoff text 0
|
||||
TRUE font-size PIXELS
|
||||
font)))
|
||||
(bg-layer (car (gimp-layer-new img 125 height
|
||||
RGB-IMAGE "Background" 100 NORMAL-MODE)))
|
||||
(shadow-layer (car (gimp-layer-copy text-layer TRUE)))
|
||||
)
|
||||
|
||||
(gimp-context-push)
|
||||
|
||||
(gimp-image-undo-disable img)
|
||||
(gimp-image-add-layer img shadow-layer 1)
|
||||
(gimp-image-add-layer img bg-layer 2)
|
||||
|
||||
(gimp-layer-set-lock-alpha text-layer TRUE)
|
||||
(gimp-layer-set-lock-alpha shadow-layer TRUE)
|
||||
|
||||
(gimp-context-set-background text-color)
|
||||
(gimp-edit-fill text-layer BACKGROUND-FILL)
|
||||
|
||||
(gimp-context-set-background bg-color)
|
||||
(gimp-edit-fill bg-layer BACKGROUND-FILL)
|
||||
|
||||
(gimp-context-set-background shadow-color)
|
||||
(gimp-edit-fill shadow-layer BACKGROUND-FILL)
|
||||
(gimp-layer-translate shadow-layer 1 1)
|
||||
|
||||
(set! text-layer (car (gimp-image-flatten img)))
|
||||
(gimp-layer-add-alpha text-layer)
|
||||
|
||||
(if (= rm-bg TRUE)
|
||||
(begin
|
||||
(gimp-by-color-select text-layer bg-color
|
||||
color-thresh CHANNEL-OP-REPLACE TRUE FALSE 0 FALSE)
|
||||
(gimp-edit-clear text-layer)
|
||||
(gimp-selection-none img)
|
||||
)
|
||||
)
|
||||
|
||||
(if (= index TRUE)
|
||||
(gimp-image-convert-indexed img FS-DITHER MAKE-PALETTE num-colors
|
||||
FALSE FALSE "")
|
||||
)
|
||||
|
||||
(gimp-image-undo-enable img)
|
||||
(gimp-display-new img)
|
||||
|
||||
(gimp-context-pop)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
;;;(define (script-fu-tube-button-label-gimp-org text rm-bg index)
|
||||
;;; (script-fu-labels-gimp-org text "nimbus sans" 14 "medium" "r" "normal" '(151 177 192) '(0 0 0) '(255 255 255) rm-bg index 15 1 8 0 30))
|
||||
;;;
|
||||
;;;(define (script-fu-tube-subbutton-label-gimp-org text rm-bg index)
|
||||
;;; (script-fu-labels-gimp-org text "nimbus sans" 12 "medium" "r" "normal" '(151 177 192) '(0 0 0) '(255 255 255) rm-bg index 15 1 7 0 24))
|
||||
;;;
|
||||
;;;(define (script-fu-tube-subsubbutton-label-gimp-org text rm-bg index)
|
||||
;;; (script-fu-labels-gimp-org text "nimbus sans" 10 "medium" "r" "normal" '(151 177 192) '(0 0 0) '(255 255 255) rm-bg index 15 1 6 0 18))
|
||||
;;;
|
||||
|
||||
(define (script-fu-tube-button-label-gimp-org text rm-bg index)
|
||||
(script-fu-labels-gimp-org text "helvetica" 14 '(86 114 172) '(255 255 255) '(255 255 255) rm-bg index 15 1 8 0 30)
|
||||
)
|
||||
|
||||
(define (script-fu-tube-subbutton-label-gimp-org text rm-bg index)
|
||||
(script-fu-labels-gimp-org text "helvetica" 12 '(86 114 172) '(255 255 255) '(255 255 255) rm-bg index 15 1 7 10 24)
|
||||
)
|
||||
|
||||
(define (script-fu-tube-subsubbutton-label-gimp-org text rm-bg index)
|
||||
(script-fu-labels-gimp-org text "helvetica" 10 '(86 114 172) '(255 255 255) '(255 255 255) rm-bg index 15 1 6 20 18)
|
||||
)
|
||||
|
||||
|
||||
(script-fu-register "script-fu-tube-button-label-gimp-org"
|
||||
_"_Tube Button Label..."
|
||||
_"Create an image of a Tube Button Label using the gimp.org webpage theme"
|
||||
"Adrian Likins & Jens Lautenbacher"
|
||||
"Adrian Likins & Jens Lautenbacher"
|
||||
"1997"
|
||||
""
|
||||
SF-STRING _"Text" "?"
|
||||
SF-TOGGLE _"Remove background" TRUE
|
||||
SF-TOGGLE _"Index image" TRUE
|
||||
)
|
||||
|
||||
(script-fu-menu-register "script-fu-tube-button-label-gimp-org"
|
||||
"<Image>/File/Create/Web Page Themes/Classic.Gimp.Org")
|
||||
|
||||
|
||||
(script-fu-register "script-fu-tube-subbutton-label-gimp-org"
|
||||
_"T_ube Sub-Button Label..."
|
||||
_"Create an image of a second level Tube Button Label using the gimp.org webpage theme"
|
||||
"Adrian Likins & Jens Lautenbacher"
|
||||
"Adrian Likins & Jens Lautenbacher"
|
||||
"1997"
|
||||
""
|
||||
SF-STRING _"Text" "?"
|
||||
SF-TOGGLE _"Remove background" TRUE
|
||||
SF-TOGGLE _"Index image" TRUE
|
||||
)
|
||||
|
||||
(script-fu-menu-register "script-fu-tube-subbutton-label-gimp-org"
|
||||
"<Image>/File/Create/Web Page Themes/Classic.Gimp.Org")
|
||||
|
||||
|
||||
(script-fu-register "script-fu-tube-subsubbutton-label-gimp-org"
|
||||
_"Tub_e Sub-Sub-Button Label..."
|
||||
_"Create an image of a third level Tube Button Label using the gimp.org webpage theme"
|
||||
"Adrian Likins & Jens Lautenbacher"
|
||||
"Adrian Likins & Jens Lautenbacher"
|
||||
"1997"
|
||||
""
|
||||
SF-STRING _"Text" "?"
|
||||
SF-TOGGLE _"Remove background" TRUE
|
||||
SF-TOGGLE _"Index image" TRUE
|
||||
)
|
||||
|
||||
(script-fu-menu-register "script-fu-tube-subsubbutton-label-gimp-org"
|
||||
"<Image>/File/Create/Web Page Themes/Classic.Gimp.Org")
|
||||
|
||||
|
||||
(script-fu-register "script-fu-labels-gimp-org"
|
||||
_"_General Tube Labels..."
|
||||
_"Create an image of a Tube Button Label Header using the gimp.org webpage theme"
|
||||
"Adrian Likins & Jens Lautenbacher"
|
||||
"Adrian Likins & Jens Lautenbacher"
|
||||
"1997"
|
||||
""
|
||||
SF-STRING _"Text" "Gimp.Org"
|
||||
SF-FONT _"Font" "Sans"
|
||||
SF-ADJUSTMENT _"Font size (pixels)" '(18 2 1000 1 10 0 1)
|
||||
SF-COLOR _"Text color" '(130 165 235)
|
||||
SF-COLOR _"Shadow color" "black"
|
||||
SF-COLOR _"Background color" "white"
|
||||
SF-TOGGLE _"Remove background" TRUE
|
||||
SF-TOGGLE _"Index image" TRUE
|
||||
SF-ADJUSTMENT _"Number of colors" '(15 2 255 1 10 0 1)
|
||||
SF-ADJUSTMENT _"Select-by-color threshold" '(1 1 256 1 10 0 1)
|
||||
SF-ADJUSTMENT _"Offset X" '(8 0 50 1 10 0 1)
|
||||
SF-ADJUSTMENT _"Offset Y" '(0 0 50 1 10 0 1)
|
||||
SF-ADJUSTMENT _"Height" '(30 2 1000 1 10 0 1)
|
||||
)
|
||||
|
||||
(script-fu-menu-register "script-fu-labels-gimp-org"
|
||||
"<Image>/File/Create/Web Page Themes/Classic.Gimp.Org")
|
|
@ -53,8 +53,6 @@ plug-ins/script-fu/scripts/flatland.scm
|
|||
plug-ins/script-fu/scripts/font-map.scm
|
||||
plug-ins/script-fu/scripts/frosty-logo.scm
|
||||
plug-ins/script-fu/scripts/fuzzyborder.scm
|
||||
plug-ins/script-fu/scripts/gimp-headers.scm
|
||||
plug-ins/script-fu/scripts/gimp-labels.scm
|
||||
plug-ins/script-fu/scripts/gimp-online.scm
|
||||
plug-ins/script-fu/scripts/glossy.scm
|
||||
plug-ins/script-fu/scripts/glowing-logo.scm
|
||||
|
|
Loading…
Reference in New Issue