05-09-2020, 12:38 AM
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!
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!