TD-e.com

TD-enotes title image
              


Frame it

A script-fu for The Gimp

Example

image framed with the script-fu 'frame it'
Zoom image

Description

"Frame it" is a script-fu for the Gimp.  It generates a frame around an image. The width of the frame can be set to your taste. You choose if you would like a plain color frame, a gradient between 2 colors or one of the predefined gradients of The Gimp involving more than 2 colors. You could even define a new complex gradient with The Gimp and then build a frame with this special gradient using this script. Like usual you can choose to have the layers merged (or not) at the end of the operation.

The script has been tested with The Gimp version 2.2.9 on Linux SuSE and with The Gimp version 2.2.10 on Windoze.
The script version 1.10 has been tested with The Gimp version 2.4.0 on Linux Ubuntu 7.10 Gutsy Gibbon.



Versions

2007.07.12 : A precision error of 1 pixel in 2 of the 4 corners has been corrected thanks to a proposition of Harald, a user.
2007.10.25 : The current version is 1.10 and has been adapted to The Gimp 2.4. It is now under the menu "Filters" and not anymore under the menu "script-Fu".



Download:

Click into the blue frame below where the script is listed.
Type Control-A to select the complete text of the script.
Type Control-C to copy the script to the clipboard.
Go to your text editor (gedit, Kate, Aedix, Notepad, etc) and type Control-V to paste the script.
Save it as a file named frame-it.scm
Linux Ubuntu or other Gnome:   use the text editor gedit or bluefish

Linux Kubuntu or other KDE:   use the text editor Kate or Quanta

Mac OS X:   use the text editor Smultron

Windoze:   use the text editor Aedix (free), or Notepad (but beware of the file extension .txt which is unwanted, the script file must have the extension .scm and not .scm.txt)

Other text editors are ok too, but word processors are not. Do not use Word, OpenOffice or similar tools.



Installation:

Copy frame-it.scm into one of the directories registered in the Gimp preferences under Folders/Scripts.
Linux Ubuntu and many others:
  /home/[username]/.gimp-2.n/scripts   or   /usr/share/gimp/2.0/scripts

Linux SuSE:
  /home/[username]/.gimp-2.n/scripts   or   /opt/gnome/share/gimp/2.0/scripts

Windoze:
  C:\.gimp-2.n\scripts   or   C:\program-files\gimp2.n\share\gimp\scripts
Then go to the menu Xtns (in The Gimp) and select Xtns / Script-Fu / Refresh Scripts. That's it.
The script can be called in the menu Script-Fu / Decor / Frame it...

ATTENTION : The version 1.10 can be called in the menu Filters / Decor / Frame it.... For mysterious reasons, the group "Decor" did refuse to appear under the menu "Script-Fu", at least in my Gimp 2.4.0, so I did put the script under the menu Filters/Decor.



Script-fu frame-it.scm for The Gimp


Notice: Undefined index: isbrowser in /home/photowp/domains/td-e.com/public_html/pbin/func/piphost.php on line 58




Sponsorship

If you find the script 'Frame it' useful and want to support the developer, you can



License

The GNU general public license applies to the script-fu frame-it.scm above.

Blog of TD-e.com
Add a comment


Main |  Software |  Photo |  Quiz |  Reviews |  Tips |  Tutorials |  Flags |  Contact |  About


Page tested with Opera, Epiphany, Konqueror, Firefox.
Copyright © 2005-2008 td-e.com, All rights reserved.
... ...
.. ..
. .