Mobile app version of vmapp.org
Login or Join
XinRu324

: Fill a shape with Bucket Tool (except leave the text inside the shape transparent) in Gimp I have this image that I downloaded and I am trying to recreate it in a larger size. This is

@XinRu324

Posted in: #Fill #Gimp #Mask

I have this image that I downloaded and I am trying to recreate it in a larger size.



This is what I have so far:



I really want to be able to fill in the oval with black, but not fill in the letter "m".

I tried making a mask, but it's not working. When I edit the mask, I cannot add text to it. I can paint on it with the paint brush, but whenever I add text, it automatically creates it as a new layer instead. It's very frustrating. I tried to copy and paste the "m" layer below onto the white mask, but it wouldn't let me do that either.

So, how can I fill in that oval while leaving the text transparent?

Please note that I want the edges of the font to still look smooth, so I am wary of using the "select" tool.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @XinRu324

2 Comments

Sorted by latest first Latest Oldest Best

 

@Sarah814

I was finally able to figure it out thanks to Michael Schumacher's comment. I put the steps here since I couldn't find these steps laid out clearly anywhere else. The thing that confused me the most was that I didn't know that the "floating selection" layer could be "anchored" onto the mask.

This solution keeps the smoothness of the text, and doesn't use the "select" tool.

Step 1: Copy the text layer. (Select it as shown, then Command + c on a Mac computer.)



Step 2: Select the mask. *Warning! This is NOT selecting the mask, but the original layer. The white border means it is selected.



Therefore, in this image, the mask is selected because it has the white border. Select the mask by clicking directly on the mask's preview-image box. (It's kind of hard to see it being selected here, because the whole mask is also white, and so is the border.)



Step 3: While the mask is selected, click Paste. (Paste is Command + V on a Mac computer.) It should look like a new layer called "Floating Selection."



Step 4: While the floating selection is still selected, click on the Anchor icon. It is in the bottom-right corner of the screenshot below.



This is the result of clicking the anchor icon:



Step 5: Fill the shape.
Select the shape layer (not the mask):



When you fill it in, it will still fill in the whole shape (as you can see in the preview, next to the mask, in the layers window), but the mask will be applied as long as it is "enabled."


After this, you can export to PNG and the mask will still be applied. Or you can continue to the next step, if you want to continue modifying the image.

Step 6: Combine the mask to the actual layer, if you want to be able to work with it that way.

Right click the mask, and click "Apply Layer Mask":



Then this is the result:

10% popularity Vote Up Vote Down


 

@Deb5748823

Not sure if this is what you are looking for but I created a shape layer (box/oval/shape) and then the letter above it. Then I made a "selection" of the letter, inverted and added a shape layer mask to the shape layer. Hope this helps.

Edit: Just realized you mentioned GIMP. I used Photoshop and I'm not sure if the same applies, since I haven't used GIMP. Hope it does.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme