Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating an "opposite" image
#1
Hey,

I was wondering if anyone could help,

I've been drawing up some clipart style images with black outlines, and am looking to create the "opposite" version of the image.

Attached image bandana 1 is a good example of the type of image I've drawn up.  I want then to be able to create image bandana 2, which is a black fill of the "empty" areas of the original drawing.  Note this isn't my work, but an example of what I want to achieve!

I've tried the obvious solution on my own work, which is to create a new layer, fill with black and then use the Fuzzy Select or Select By Color tools to highlight the original black outline on my image, and then delete from the black layer to get the black "opposite" image, but it creates very rough and pixelated edge.

Sorry if my wording is confusing - hope the question makes sense!

Thanks,

Chris


Attached Files Thumbnail(s)
       
Reply
#2
Starting with this:

   
  • Do a fuzzy selection on the background of the image (it can be useful to increase the size of the layer first to have some margin all around)
  • Select ➤ Grow by a couple of pixels, so that the selection bleeds inside the design
  •  Select ➤ Invert so that the selection is now slightly inside the design
  • Add a new layer
  • Bucket fill the selection: this will give you something that has the overall shape of the design, like this:

   
  • Back to the original layer: Layer ➤ Transparency ➤ Alpha to selection, to obtain a selection shaped after the original
  • Back to the added layer: Edit ➤ Clear to delete the original design.

   

Quote:I've tried the obvious solution on my own work, which is to create a new layer, fill with black and then use the Fuzzy Select or Select By Color tools to highlight the original black outline on my image, and then delete from the black layer to get the black "opposite" image, but it creates very rough and pixelated edge.

Reply
#3
or you could try color invert

Smile
Reply
#4
(03-27-2022, 01:21 PM)sallyanne Wrote: or you could try color invert

Um... no it's a transparent image, thus the alpha to selection/remove holes/new layer fill black/alpha to selection below again/grow 1/delete on top Wink
Reply
#5
(03-27-2022, 05:33 PM)PixLab Wrote:
(03-27-2022, 01:21 PM)sallyanne Wrote: or you could try color invert

Um... no it's a transparent image, thus the alpha to selection/remove holes/new layer fill black/alpha to selection below again/grow 1/delete on top  Wink

Thanks so much for the response!  It's been annoying me for ages!
Reply
#6
"Um... no it's a transparent image, thus the alpha to selection/remove holes/new layer fill black/alpha to selection below again/grow 1/delete on top"
Found out Pix when I downloaded it.
What I did was invert the colour and added another black layer, put it to the bottom, merged & removed selection. Assuming you want black in the centre of it instead of white. Otherwise just don't add the layer.

Smile
Reply
#7
(03-28-2022, 11:34 AM)sallyanne Wrote: "Um... no it's a transparent image, thus the alpha to selection/remove holes/new layer fill black/alpha to selection below again/grow 1/delete on top"
Found out Pix when I downloaded it.
What I did was invert the colour and added another black layer, put it to the bottom, merged & removed selection. Assuming you want black in the centre of it instead of white. Otherwise just don't add the layer.

I did not understand all (sorry about that), can you describe it step by step, I got stuck at & remove selectionas there is no selection n the beginning (IF I understood)
I'm always very curious for a faster way.,
yeahh I'm narrow minded Big Grin
It would be very nice to know your way step by step Wink
Reply
#8
My understanding of Sally's steps:

1- Colors - Invert;
2- New layer, fill it black;
3- Put this layer to the bottom;
4- On the top layer, make Alpha for selection;
5- Merge the two layers;
6- Delete the selection;

I believe there could still be an under-understood step:

7- With the fuzzy select tool, select and remove the black external area.

My understanding of the steps taken by PixLab:

1- Alpha for selection; (layer #01)
2- Select - Remove holes;
3- Create a new layer (layer #02) and fill it with black; (selection is still active).
4- Select None;
5- Select the first layer (Layer #01) - Alpha to selection;
6- Select - Grow = 1;
7- Disable the visualization of this layer;
8- Select layer #02 - Delete.
                               .....
Samj PortableGimp 2.10.28 - Win-10 /64.
Reply
#9
(03-29-2022, 02:35 AM)Krikor Wrote: My understanding of Sally's steps:

1- Colors - Invert;
2- New layer, fill it black;
3- Put this layer to the bottom;
4- On the top layer, make Alpha for selection;
5- Merge the two layers;
6- Delete the selection;

I believe there could still be an under-understood step:

7- With the fuzzy select tool, select and remove the black external area.

My understanding of the steps taken by PixLab:

1- Alpha for selection; (layer #01)
2- Select - Remove holes;
3- Create a new layer (layer #02) and fill it with black; (selection is still active).
4- Select None;
5- Select the first layer (Layer #01) - Alpha to selection;
6- Select - Grow = 1;
7- Disable the visualization of this layer;
8- Select layer #02 - Delete.

Thanks Krikor good decryption [Image: thumbsup.png]
I won't do step 4, though, just because an alpha to selection (step 5) will always replace any current/active selection Wink

@ sallyanne, now I understood (I can also be slow Big Grin )
Reply
#10
Can you gentlemen show the results of your processes?
Reply


Forum Jump: