Gimp-Forum.net
Reverse transpareny - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Reverse transpareny (/Thread-Reverse-transpareny)



Reverse transpareny - macr8e - 03-07-2020

Probably something very simple but I'm stuck. I have a png file of an arrow. I want the arrow a color and the bg transparent. Currently the arrow in transparent and the bg is color. It seems this should be a simple fix.


RE: Reverse transpareny - mholder - 03-07-2020

In that png, the background is already transparent, but so is the inside of the arrow. Just do a fuzzy select of the inside of the arrow and fill it with a color, if you want to keep the outline, or fuzzy select the outside of the area, then invert the selection and fill with a color


RE: Reverse transpareny - macr8e - 03-07-2020

(03-07-2020, 06:42 PM)mholder Wrote: In that png, the background is already transparent, but so is the inside of the arrow.  Just do a fuzzy select of the inside of the arrow and fill it with a color, if you want to keep the outline, or fuzzy select the outside of the area, then invert the selection and fill with a color

Do you mind walking me through this from the start?

I already have one image layer open..a blank highway sign. Added a couple text layers (street names) Now I want to add a couple of arrows.

When I open arrow as layer it is much larger than what I am already working with

Scaled it to proper size


RE: Reverse transpareny - mholder - 03-07-2020

If you posted yout Gimp file it would help, but is sounds like the arrow layer needs to be resized.  Either layer->resize layer, or you could use the scale tool in the toolbox

https://www.youtube.com/watch?v=sFJAE-oriQk

The unified transform tool is most versatile


RE: Reverse transpareny - macr8e - 03-07-2020

don't want the arrow outline. grabbed fuzzy select tool, filled outside arrow. BG is color arrow is transparent. How do I invert the colors?

(03-07-2020, 07:05 PM)mholder Wrote: If you posted yout Gimp file it would help, but is sounds like the arrow layer needs to be resized.  Either layer->resize layer, or you could use the scale tool in the toolbox

https://www.youtube.com/watch?v=sFJAE-oriQk

The unified transform tool is most versatile

Current status

(03-07-2020, 07:12 PM)macr8e Wrote: don't want the arrow outline. grabbed fuzzy select tool, filled outside arrow. BG is color arrow is transparent. How do I invert the colors?

(03-07-2020, 07:05 PM)mholder Wrote: If you posted yout Gimp file it would help, but is sounds like the arrow layer needs to be resized.  Either layer->resize layer, or you could use the scale tool in the toolbox

https://www.youtube.com/watch?v=sFJAE-oriQk

The unified transform tool is most versatile

Current status

don't want the arrow outline. grabbed fuzzy select tool, filled outside arrow. BG is color arrow is transparent. How do I invert the colors?


RE: Reverse transpareny - rich2005 - 03-07-2020

Your arrow looks terrible, scaling that original large image down so much is not a good idea.

My advice since it is such a simple shape,
trace the arrow with the path tool
Select Select -> All and clear the layer Delete
Fill the path with a colour Edit -> Fill Path

something like this https://i.imgur.com/gDPwW5f.mp4

You can use the same path in other parts of the image. All the transform tools (move / scale / rotate...) have a path mode.


RE: Reverse transpareny - mholder - 03-07-2020

I think you should not invert the colors, but the selection.

I mean, use the fuzzy select tool, select the outside of the arrow, then reverse the selection by going selection->invert

THEN filling it with you foreground color, either by edit->fill with FG color, or even the bucket tool

[attachment=4040]

Something like that?

But really, maybe Rich has a better approach.  For something as simple as an arrow, maybe even drawing it with the pencil or paintbrush tool using straight lines with shift or shift+control for certain angles, and then just bucket filling it.

By the way, I like the artwork there


RE: Reverse transpareny - macr8e - 03-07-2020

Thanks guys, wound up using Rich's way but must admit..video was a little fast to follow. Can't add finished product.