A python conversion of my script-fu Line border script (http://registry.gimp.org/node/118). 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.
TODO:
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
INSTALLATION:
You need a gimp with python support installed.
Linux:
- Extract content of the zip archive to the ~/.gimp2.6/plug-ins/ directory
- Make script executable (chmod og+x ~/.gimp2.6/plug-ins/kym-Border.py
- Script is installed under Filters/Decor/Borders/ as Line Border 2
Windows:
Please follow great step-by-step guide from E. Sullock Enzlin at http://registry.gimp.org/node/24503
SCREENSHOTS:
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

CHANGELOG:
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
Comments
Re: I need a little help with
Yes, I've checked the current versions and I have glade 3.10 installed. I'll prepare a new ".glade" file with older version.
No luck with the
command line start.
So i downloaded and installed 2.6.4 libglade dll and the libglade 2.6.4 dev zips and unpacked them into Gimp-2.0 folder.
The plugin lineborder folder i left in the user/gimp-2.6/plugins folder.
Still on restart it didn't work except the tree menu demo dialog window popped up?That file is in the lineborder folder.
Gimp tries to execute that file every time at start up now. :)
Which leads me to believe the files need to be in a different tree structure.
What is the structure from which you compiled them?Perhaps if i mimicked your directory tree as i had to do with APNG for windows Gimp-2.7.3 it will work?
Hi, the problem probably is
Hi, the problem probably is that I used never Glade version (3.10) and libglade present on windows don't understood the new glade file structure.
I did not tested this plugin in 2.7 gimp.
I will try to provide new .glade file when I return from work.
Hi mkyral,From the Glade
Hi mkyral,
From the Glade site:
"........Glade 3.8.0 is the last stable series of Glade for GTK+2 and 3.10 is the first stable series for GTK+3......"
Using 3.10 with GTK+3 is not suitable yet for windows. I think the problem will be solved when you set 3.10 to be compatible with GTK+2. Or use Glade 3.8.0.
I also get this warning from the Glade 3.7.1 command window:
< glade-3.exe:1208>: GladeUI-warning**: Failed to locate internal child selection of treeview_profiles
New version
Thank,
could you try this version?
https://raw.github.com/mkyral/LineBorder/9093987916cdfbce55e6a2cf5fa065a...
I only re-open in glade-3.8.0. Seems, it still works for me. If it will work for you as well, I'll release fix.
I give up
i can not seem to get this to work for me.
I tried adding the libglade dll file to Gimps bin folder and i tried the new lineborder.glade replacement.
Gimp says its using it but the dialog never opens.
Gimp even registers that it can be re-used under filters.
For some reason that treemenu dialog keeps popping up on gimp load.
I just went ahead and un-installed it all.
Mareo perhaps you can tell me how you got it running?
Installation notes
Hi Rod,
Only instructions E. Sullock Enzlin at http://registry.gimp.org/node/24503 (installation notes - note for installation on Windows XP ).
Did you install pygtk-2.16.0 + glade.win32-py2.6.exe ?
Re: New version
Your new version works very well now for me, thanks.
I'll update the dutch language as soon as possible and will sent it to you.
New version works very well
As for me - with the latest version LineBorder.glade works on XP 32bit with Gimp 2.6.11 and 2.7.3.
Thank you !
New version works very well
Thanks for testing. New version released.
Pages