0

How to remove a shape from an image?

It's a simple question but also googling it I can't find a solution.

Image to explain the problem Image I'll have to do
Fuckuimage center

Concentrate attentions to the Image to explain the problem
As a result I would like to have two circles,

  • One black
  • And one green
    PS: The green one will be cut with the shape that is in the center.

How can I achieve this? It's simply but I don't know how to make it 🙁

Ps: if you think this question is useful and well written, do not hesitate to put an upvote, thanks

3
  • Excuse me but do you want a) a transparent hole to the coffin shaped area or b) should it be differently colored or c) is there some magic reason why the coffin shape should be filled with that green shape which already has been in the green ellipse inside he black circle(= no other green taken from elsewhere with same RGB numbers are valid for those magic reasons)? Shortly: the meaning of term cut is unknown. – user287001 Jan 13 at 16:25
  • Yes, a transparent hole to the coffin shaped area in the green circle👍 the a) question – Lale Jan 13 at 16:27
  • I will have to do exactly the same thing for the next image that you can see in the question, i.e. remove that piece of color between the two cables – Lale Jan 13 at 16:31
2

Select those shapes under the coffin which need the hole, group them. Then select the coffin and the group and apply Object > Clip > Set Inverse. No group is needed if there's only one object which needs a hole under the coffin

Inverted clipping path deletes nothing, it makes a part transparent.

BTW you are an exceptional XY questioner, you also revealed the actual problem in a comment. The others maybe never get a solution for the actual problem because the actual but hidden Y isn't equivalent with asked X.

The presented solution doesn't solve your actual problem, it solves only the green and black circle case, Bitmap images need something else.

This does the job

enter image description here

Draw a path (=blue) along the edge

Insert a big rectangle (=red) between the photo and the drawn rectangle. Beware moving the path or photo.

Subtract the blue path from the rectangle (=Path > Difference)

Select the photo and the rectangle with hole, apply Object > Clip > Set

I inserted some blue garbage under the result to show there's a hole.

I guess a white cover drawn over the photo could also do the job if there's nothing else under the photo than white.

GIMP is the tool for photo editing. There a hole is made in seconds when there's good contrast. The next result took 10 seconds in GIMP. The grey between the wires and surrounding white were selected with the Fuzzy selection tool (=the magic wand) and DEL was pressed:

enter image description here

1
  • yes, I'm an XY questioner :), I thought the two samples were solvable in the same way, thanks for having both answers – Lale Jan 14 at 7:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.