Gimp-Forum.net
Crop individual icons - 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: Crop individual icons (/Thread-Crop-individual-icons)



Crop individual icons - meetdilip - 05-17-2021

I have something like the smiley list we have here, but a PNG with transparent background. ie, other than the icons ( here smilies ) everything else is transparent. Is there any method to extract these icons (around 6 ) with minimal steps instead of cropping them out one by one ? Thanks

[Image: C5rVvhJ.png]


RE: Crop individual icons - rich2005 - 05-17-2021

Probably the best bet is ofnuts ofn-extract-objects plugin from http://sourceforge.net/projects/gimp-tools/files/scripts/ read the docs in the zip.

[attachment=6035]

An alternative in the gmic_gimp_qt plugin is extract objects. That keeps as layers and you will have to use a layers-to-files plugin.

[attachment=6036]

Only six. You could set some guides up and use Image -> Slice to Guides and that produces separate images. You will need to export individually.


RE: Crop individual icons - meetdilip - 05-17-2021

Awesome!! I never thought there will be so many straightforward solutions. Thanks.


RE: Crop individual icons - meetdilip - 05-17-2021

Tried 2 and 3. Working.

Update : Tried all 3 methods, all of them works perfectly.


RE: Crop individual icons - Ofnuts - 05-17-2021

ofn-extract-objects is best used when the objects are scattered somewhat randomly over the layer. When everything is in clean rows/columns, ofn-tiles or ofn-layer-tiles are better suited.


RE: Crop individual icons - meetdilip - 05-17-2021

Thanks. Got them now.

I wonder whether there is anything you to remove background from photos. I am using ofn-erase-background plugin, but I am not sure it is the right thing for a photo from a smartphone.


RE: Crop individual icons - Ofnuts - 05-17-2021

ofn-erase-background is meant to erase background from CGI (logos, etc...). For Photos use the foreground selector.


RE: Crop individual icons - meetdilip - 05-17-2021

Is it possible to get a simple video on using Foreground select tool. I often get it wrong. Thanks.