Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add a solid border without changing the overall size
#1
Photo 
I'm fairly new to Gimp, so this might be a straightforward answer.

I have a collection of images that are a solid color with transparent backgrounds.

https://imgur.com/a/mw6jj6x

This is a crude example. The left arrow is the type of image I have where Green is the solid color and White is transparent.

My goal is to add borders like the red in the example. 
The middle adds a single layer of pixels outside of the original, overwriting some transparency.
The right replaces the outermost layer of pixels with a new color without replacing any transparent pixels.

Clearly the optimal solution would work for any number of pixels.

The images are not simple polygons so I can't just use a specialized rectangle/circle/etc drawing tool.
I created the example by using the pencil tool and manually changing pixels to red. This is not feasible for larger images.

Also avoiding some sort of smoothing would be nice. I want the border to be a solid color. Any solutions that involve smoothing are still acceptable.

Thanks for any and all advice!
Reply


Messages In This Thread
Add a solid border without changing the overall size - by Summoner99 - 05-09-2020, 12:38 AM

Forum Jump: