Post Reply 

Working with Script fu decor borders?

May 30, 2011, 20:50
Post: #1
Working with Script fu decor borders?
Hey all,

I have been using gimp for a year or so to do simple editing on jpgs, but today i have starting working on easy multi layer images.

I am making a small portfolio. I made the image 8.5"x11". Added a gradient to the background. Added 2 text boxes, aligned them and finally imported an image as a layer. I then resized the image layer so it fits on my page.

All is great except I want to add a simple 2 pixel border with the Script-fu decor>border script. However it seems no matter my active layer the border is applied around the whole 8.5"x11" image. How do I make gimp only put a border around my image layer?

Thanks

-E
Find all posts by this user
Quote this message in a reply
May 30, 2011, 21:42 (This post was last modified: May 30, 2011 21:44 by ofnuts.)
Post: #2
RE: Working with Script fu decor borders?
The script you use adds the border to the image, so you'll have to isolate your layer in its own image to add this kind of border to it.

However, since we are talking about a two pixels border, the frills of such a border won't be very visible, while you can easily add an uniform border to your layer:

For an inside border:
- Layer/Transparency/Alpha to selection (makes selection exactly on the layer)
- Select/Shrink with 2px
- Select/Invert: now you have a 2px selection around your layer, inside its original boundaries

For an outside border:
- Layer/Layer boundary size, unlink X/Y, and add 2px to each. Click "center" button. This adds a 2px transparent border around your layer.
- Layer/Transparency/Alpha to selection: selects the layer except the transparent area
- Select/Invert: selects only the transparent area

Once you have done one of the selections above you can fill it with whatever you fancy: plain color, pattern, gradient....

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Oct 20, 2011, 09:15
Post: #3
RE: Working with Script fu decor borders?
Hi...,Nice post....I am totally agree with ofnuts. Isolate your layer in its own image to add this kind of border to it.For two pixels border, the frills of such a border would not be very visible, while you can easily add an uniform border to your layer.....
Find all posts by this user
Quote this message in a reply
Oct 20, 2011, 10:34 (This post was last modified: Oct 20, 2011 10:34 by rich2005.)
Post: #4
RE: Working with Script fu decor borders?
Lots of ways of doing this as Ofnuts demonstrates but IMHO the OP is possibly using the wrong tool for a 2 pix border.

Going back to post
Quote:... I then resized the image layer so it fits on my page.
...How do I make gimp only put a border around my image layer?

While the image layer is still the original size, select it and then stroke the selection as these screen shots.
http://i.imgur.com/UNRVh.jpg
then set the image layer to image size.

Of course you could just make a selection then stroke it.

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  invert not working, no LqR remadepreacher 1 185 Jun 22, 2017 08:09
Last Post: ythgilb
  invert not working, no LqR remadepreacher 1 156 Jun 22, 2017 08:04
Last Post: ythgilb
  Adding shadow text not working AndrewChristian 7 514 Sep 24, 2014 22:07
Last Post: AndrewChristian
  Create new images button & Save as override from Script-fu beniman 12 550 Sep 10, 2014 10:57
Last Post: paynekj
  Working with an image already has background removed grifter 5 410 Aug 18, 2014 18:27
Last Post: grifter

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS