Post Reply 

1 pixel wide line with feathering

Jun 12, 2012, 14:06 (This post was last modified: Jun 12, 2012 15:01 by spiderplant0.)
Post: #1
1 pixel wide line with feathering
I'm trying to create 1 pixel wide borders for some web buttons. I've tried to use the GIMP path tool to do this but I can't figure out how to get it looking right. See attached image.

1 - copied from a button I found on a web-page. This is what I want - single pixel horizontal and vertical lines with feathering on the curved bits.

2 - path that I used to generate the images on the right.

3 - 'Stroke Path' with 1px brush size & no antialiasing. Corners are not smooth.

4 - 'Stroke Path' with 1px brush size & anti-aliasing. Straight lines are too fuzzy as they are 2 pixel wide rather than 1.

Is there a way to do this with the path tool or any other way with the GIMP?

Find all posts by this user
Quote this message in a reply
Jun 14, 2012, 10:49
Post: #2
RE: 1 pixel wide line with feathering
Thanks. Thats just what I was looking for. One other thing though, when manually creating a path, is there a way in GIMP to align or snap to 1/2 pixels? The grid doesnt allow 1/2 pixel resolution. One idea I came across was to scale the image up by x2, align to 1px grid, then scale down again. Dont know if repeated scaling up and down will start to smear pixels in other parts of the image though. Do you know if there any other more direct methods of aligning to 0.5px? I did a search for path shrink script but couldnt find anything.
Find all posts by this user
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Making an echo line around an image? MADdukeDUDE 1 288 Feb 17, 2018 04:39
Last Post: ythgilb
  Changing a silhouette to line art Tropdoug 3 898 Oct 7, 2014 07:51
Last Post: rich2005
  Can't find line tool? FluffyMuffins230 4 736 Oct 1, 2014 16:24
Last Post: FluffyMuffins230
  How to paint with single pixel? Teekin 3 2,222 Sep 28, 2014 16:00
Last Post: rich2005
  Lithophane/line image djh256 3 703 Sep 16, 2014 14:06
Last Post: djh256

Forum Jump:

GIMP ForumPortalArchiveContactTermsRSS