It is currently Thu May 23, 2013 8:41 pm


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: corners rounded when growing
PostPosted: Wed Aug 22, 2012 1:55 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Apr 30, 2010
Posts: 1840
Location: Missouri
GIMP Version: 2.6.11
Operating System: Windows
OS Version: 7 pro
GIMP Experience: Intermediate Level



I know there has to be a simple way to fix this but I haven't found it yet. I've attached an example to help illustrate it. When I make a polygon, in this case a rectangle, then grow the selection the corners are rounded, as seen in the white layer. I don't have rounded corners turned on and even if I did I have it set to 0. Is there a setting I've been overlooking or is this just a gimp quirk? BTW I'm using 2.8, not 2.6.

_________________
Image
The last time I kept an open mind,
my brain fell out and the dog grabbed it.
Now it's full of dirt, toothmarks, and dog slobber.
No more open minds or dogs for me.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Profile  
 

 Post subject: Re: corners rounded when growing
PostPosted: Wed Aug 22, 2012 2:19 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 3105
Location: UK
This happens to me too in 2.6.11. It's a nuisance but I don't know if there is any way to correct it.

_________________
Image




Top
 Profile  
 
 Post subject: Re: corners rounded when growing
PostPosted: Wed Aug 22, 2012 2:37 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Apr 23, 2010
Posts: 820
Location: not from Guildford after all
Growing or shrinking a selection works, not by scaling the selection (which would be problematic in most situations) but, by painting around the selection's perimeter (its marching ants) with a round brush*. This results in a rounding of corners when a rectangular selection is grown.

Attachment:
selection.png
selection.png [ 2.99 KiB | Viewed 353 times ]



* The actual algorithm is a little more complicated since it tries to retain any feathering that might exist in the original selection, but for the purpose of understanding why the corners get rounded when a selection is grown, this explanation should suffice.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Profile  
 
 Post subject: Re: corners rounded when growing
PostPosted: Wed Aug 22, 2012 2:39 pm  (#4) 
Offline
GimpChat Member

Joined: Aug 05, 2011
Posts: 527
Location: limestone,ny
Saulgoode explains a trick for this in this thread, just tried it and it works
from the thread..
A good way to correct for this is to, in the case of growing an elliptical selection, clicking within the grown selection with the Elliptical Select Tool. This will cause the resizing handles to appear. Move the mouse to the top resizing bar and then press the cursor left key on your keyboard*. This will result in a "new" elliptical selection that is the same size as the original, but with the distortions caused by growing eliminated. Click in the center of the selection (or press ENTER) to accept this corrected selection. (A similar operation can be used for rectangular selections, only with the Rectangle Select Tool.)


* Alternately, you can place the mouse pointer over either of the side resizing bars and use the up or down cursor key -- the idea is to not actually resize the selection, but to "trick" GIMP into thinking you have.


view topic


Top
 Profile  
 
 Post subject: Re: corners rounded when growing
PostPosted: Wed Aug 22, 2012 2:51 pm  (#5) 
Offline
GimpChat Member

Joined: Feb 14, 2012
Posts: 156
You could also resize from the center and use the dialog box to precisely change size in GIMP 2.8

Image

or turn into a path and move the handles manually

Alan


Top
 Profile  
 
 Post subject: Re: corners rounded when growing
PostPosted: Wed Aug 22, 2012 3:15 pm  (#6) 
Offline
GimpChat Member

Joined: Feb 14, 2012
Posts: 156
Another alternative would be to use the [stroke path] [Line Style] [Join Style] [Miter]

Image

this would work on many different angles and not just 45 degree corners.


Top
 Profile  
 
 Post subject: Re: corners rounded when growing
PostPosted: Wed Aug 22, 2012 5:40 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Apr 30, 2010
Posts: 1840
Location: Missouri
I've started just making 4 guides around the edges and drawing another rectangle, I'll try the other ideas mentioned. I was thinking it was just me doing something wrong.

_________________
Image
The last time I kept an open mind,
my brain fell out and the dog grabbed it.
Now it's full of dirt, toothmarks, and dog slobber.
No more open minds or dogs for me.


Top
 Profile  
 

 Post subject: Re: corners rounded when growing
PostPosted: Wed Aug 22, 2012 10:35 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jul 14, 2010
Posts: 500
Here is a .scm I wrote (long ago) that can help do what you want. http://www.silent9.com/incoming/scripts ... tional.scm It creates eight menu items under Select>Directional Grow>Grow Left (right, up and down, left 10, right, 10 etc.) The alt-cursor keys are not used in gimp, so you can use Edit>Keyboard Shortcuts to set them up. Here is a screen grab of the keybindings I set up:

Image

SO to grow all directions by one pixel, just use (hold the alt key) and cursor up, down, left, right. or by 10 pixels (hold Shift-Alt) and cursor up, down, left, right.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Last edited by RobA on Mon Apr 22, 2013 9:24 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: corners rounded when growing
PostPosted: Thu Aug 23, 2012 1:03 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Aug 16, 2012
Posts: 1969
Location: Göteborg, Sweden
rob a: that looks like a very helpful script, i'm going to try it out at once!
(i'll be very careful with the alt+up commando though - who knows what it will do to my taste in clothes and music ;))

_________________
Image


Top
 Profile  
 
 Post subject: Re: corners rounded when growing
PostPosted: Thu Aug 23, 2012 9:23 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Apr 30, 2010
Posts: 1840
Location: Missouri
I grabbed it, Rob. Thanks

_________________
Image
The last time I kept an open mind,
my brain fell out and the dog grabbed it.
Now it's full of dirt, toothmarks, and dog slobber.
No more open minds or dogs for me.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

* Login   * Subscribe to RSS Feed


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group