You are here

Line Border 2

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!
LineBorder-2.4.2.zip70.44 KB

A python conversion of my script-fu Line border script ( This version uses python-glade dialogs. It allows to create smaller and much clever input dialog and integrate much more functions. On other side, due to missing support of glade dialogs from Gimp, there is not possble to run this script in batch mode.

Current features:

  • All sizes could be specified in pixels or percents
  • Border corners and lines corners could be rounded
  • Multiple lines of text
  • Different font for eeach text
  • Texts coud be also placed on left, right or upper border
  • A watermark support (text or logo)
  • Translations (cs, nl)

If you found a bug or have a wish, please let me know. Thanks.


  • Profiles (create/update/delete/rename)
  • Fill border with pattern
  • Allow to put Exif information inside the border
  • Allow batch mode
  • Use own script parameters dialog (Glade)
  • Allow more text options (each text in different font...)
  • Large border also in % of image Angle with round (if possible) (JacqDjo)
  • Sign (text,and color) in image with choice corner (JacqDjo)
  • Put text on right border of image instead under
  • Translations


You need a gimp with python support installed.


  • Extract content of the zip archive to the ~/.gimp2.6/plug-ins/ directory
  • Make script executable (chmod og+x ~/.gimp2.6/plug-ins/
  • Script is installed under Filters/Decor/Borders/ as Line Border 2


Please follow great step-by-step guide from E. Sullock Enzlin at


a GUI:

Multiple rows of text:

Text on right border

Text on upper border, rounded cornes

An watermark logo inside the image

A watermark text inside the image

Inner corners rounded


04.01.2012 - v2.4.2

  • NL translation updated - thanks to Elmar
  • German translation added - thanks to Gudrun Schymiczek
  • Fix: Watermark image does not work

05.09.2011 - v2.4.1

  • FIX: fix Glade-3.10 issue

02.09.2011 - v2.4

  • ADD: profiles
  • ADD: Swap colors button
  • ADD: French translation (thanks to Brigitte Barbet)

03.11.2010 - v2.3

  • CHANGE: GUI improvement - Border page redesigned
  • ADD: Border corners could be rounded
  • ADD: Translations - cs, nl
  • CHANGE: correct issues with extreme values
         (e.g.: border width = 0 - a panorama style)

28.10.2010 - v2.2

  • ADD: allow to put sign/watermark inside the image

25.10.2010 - v2.1

  • CHANGE: use own glade dialog
  • CHANGE: remember plugin setting between sessions
  • CHANGE: Text could have more lines
  • ADD: posibility to place text on sides and on upper border
  • ADD: sizes could be in pixels or in percents
  • ADD: corner rounding

12.10.2010 - v2.0

  • Initial conversion to python
Code License: 
GIMP Version: 
Scripting Engine: 


I have python 2.7.2 and it works.

I could never get GIMP 2.6 to recognize Python scripts using Python 2.7, what's your secret? I've tested Python extensively with all Window OS and Ubuntu 10.04.

Uaaaa third time today. Spam filter, then I'm replaying to non existing post. Did you deleted it?

Yes, I deleted it. Tired of ranting about Python issues. We need someone with Python knowledge and skills to resolve or explain the incompatibilities between versions. You were referring to Python in Linux, and I was basically covering Windows, until I read that the user was using Ubuntu 11.04.

Aha. You are admin?

If yes, do you know something about the spam filter? It makes me crazy today :-/ Really !!!!

I'm a moderator, more or less. I have no control over the SPAM filter. Sorry.

The rest of the reply is on

I really cannot continue with discussion, sorry :-/

I typed the command you suggested. here is what i got-

hrishi@hrishi-laptop:~$ strace -o gimp_strace.log gimp

(gimp:9014): GLib-WARNING **: /build/buildd/glib2.0-2.28.6/./glib/goption.c:2132: ignoring no-arg, optional-arg or filename flags (8) on option of type 0
/home/hrishi/.gimp-2.6/plug-ins/dustcleaner: error while loading shared libraries: cannot open shared object file: No such file or directory

(gimp:9014): LibGimpBase-WARNING **: gimp: gimp_wire_read(): error
GIMP-Error: Plug-in "script-fu"
attempted to register the menu item "/FX-Foundry/Image Effects" for procedure "script-fu-add-frame".
The menu label given in gimp_install_procedure() already contained a path. To make this work, pass just the menu's label to gimp_install_procedure().

GIMP-Error: Plug-in "script-fu"
attempted to register the menu item "/FX-Foundry/Image Effects" for procedure "script-fu-add-mat".
The menu label given in gimp_install_procedure() already contained a path. To make this work, pass just the menu's label to gimp_install_procedure().

(gimp:9014): Gimp-Widgets-WARNING **: gimp_dialog_factory_dispose: stale non-toplevel entries in factory->open_dialogs


It does mention about the dustcleaner, but not about your Line Border 2...I hope you can make more sense out of it. These things are new to me (I am not a developer)


All I could find was Preferences (in Edit/Preferences) and Plugin Browser (Help/ Plugin Browser). However, I know that all my other scripts (not plugins) which i put in the script directory are working fine. For my plugin, I had to put it in a totally different folder as mentioned in the installation instructions by the plugin creators.

My scripts are stored in-

and the plugins I installed I stored in-
/home/hrishi/.gimp-2.6/plugins. Note- The only plugins in this folder are the ones I installed (and most of which are not running). Preinstalled plugins are not seen in this folder.

BTW, here is the listing of the script directory-

hrishi@hrishi-laptop:~$ ls -la LineBorder /home/hrishi/.gimp-2.6/plug-ins/LineBorder-2.3/LineBorder/
ls: cannot access LineBorder: No such file or directory
total 200
drwx------ 4 hrishi hrishi 4096 2011-06-29 13:22 .
drwxr-xr-x 3 hrishi hrishi 4096 2011-06-29 13:22 ..
-rw-r--r-- 1 hrishi hrishi 44544 2010-11-03 21:17
-rw-r--r-- 1 hrishi hrishi 146 2010-11-03 21:17
-rw-r--r-- 1 hrishi hrishi 114047 2010-11-03 21:17
-rwxr-xr-x 1 hrishi hrishi 23585 2010-11-03 21:17
drwx------ 4 hrishi hrishi 4096 2011-06-29 13:22 locale
drwx------ 2 hrishi hrishi 4096 2011-06-29 13:22 po


Hi, I thing problem is in path: /home/hrishi/.gimp-2.6/plug-ins/LineBorder-2.3/LineBorder/
I think, it should be: /home/hrishi/.gimp-2.6/plug-ins/LineBorder/

If it does not help, look to the gimp_trace.log file (generated by strace). The should be rows containing LineBorder.


Subscribe to Comments for "Line Border 2"