Mobile app version of vmapp.org
Login or Join
Speyer780

: Use GIMP to extract out the logo from background I would like to extract out the icon in the following screen (mixed with gray background) to Anyone know how I can do that using GIMP?

@Speyer780

Posted in: #BackgroundRemoval #Bitmap #Gimp

I would like to extract out the icon in the following screen (mixed with gray background)



to



Anyone know how I can do that using GIMP?

Thanks.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Speyer780

2 Comments

Sorted by latest first Latest Oldest Best

 

@Martha945

Personally, I would rebuild the image from scratch because I find it frustrating not to have original source files. But, until you or someone else gets around to doing that, here's the non-destructive quick fix:


d (changes default fg/bg colors to black & white)
CTRL+SHIFT+n (create new layer) press OK/enter
SHIFT+b (selects the path tool)
Roughly outline your desired image with the path tool: It works like connect-the dots kinda... click once on your image and then click elsewhere and it creates a straight line. Let the lines clip rounded corners for now. Close the path by going around until you get back to your starting point (click on it).
Improve the outline First fix the straight edges. zoom in (shortcut: +) super close so you can see better. Click and drag the dots to get the lines where you want them. (zoom out is -)
Finalize the outline Now fix the curved edges. zoom in (shortcut: +) super close so you can see better. Make sure "polygonal" is unchecked in the toolbox (CTRL+B if the toolbox isn't there). Now you can click on the lines between dots and drag it to make it curved.
Convert the path to a selection Hold down shift and click selection from path in the toolbox (CTRL+B if the toolbox isn't there).
Menu->Layer->Mask->Add Layer Mask and choose "selection", make sure the image layer is selected (everything you don't want is now hidden!)
Fix anything you don't like just click on the paintbrush (p) and paint black on the mask to hide things you don't want, or paint white on the mask to show things you accidentally hid.
To maintain transparency, make sure you save as a png (for production use) in addition to saving the original GIMP file (for future editing).

10% popularity Vote Up Vote Down


 

@Murray664

Unfortunately it is never perfect to extract elements out of a raster image. Others will hopefully chime in with the best way to accomplish it in GIMP, but do note that for various reasons (especially anti-aliasing, which smooths out lines by blending pixels on the edge of the line with the background) any attempt to select part of a raster image and delete the rest will always result in either a ragged stair-stepped edge or an ugly halo of the background color.

In this case I would use a layer mask to remove parts of the image. The free select tool with polygon snap (polygonal lasso tool in Photoshop) can be used to paint black/carve off straight sections from the right side of the image, and then use the fuzzy select tool (magic wand in Photoshop) to get around the tricky gaps in the top-left. Not perfect though.

For this reason you always want to keep the original image with either intact layers for later modification or as a vector illustration.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme