It is currently Wed Nov 25, 2026 6:53 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Removing background of an image using command line
PostPosted: Tue Dec 25, 2018 9:22 pm  (#1) 
Offline
New Member

Joined: Dec 25, 2018
Posts: 1
Hi, can you help me any one. How to remove background to using this tool. i am new of this tool and i'm try to research on the python script to remove background of an image.
Please give me some idea to remove background.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Removing background of an image using command line
PostPosted: Wed Dec 26, 2018 4:45 am  (#2) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 8511
Location: On the other side of your screen
Command line? No idea.
You can however do foreground select using the tool in Gimp and invert the selection clearing the background (make sure your image has an alpha channel if you want a transparent background after) . Or if you have GMIC there is a similar filter called Extract foreground (Interactive). You can also do it with masks in gimp.
Edit: Also forgot about fuzzy wand selector :fuzzsel or same colour :colsel if the image you want to keep doesn't have the same colour as the background in it

_________________
Image
Free Fun Photo Editing & resources
Poems from the Lord
Gimp Newby
Gimp version 3.2.8 and GMIC-Qt 4.0.2 OS :- Windows 10 Home 64


Top
 Post subject: Re: Removing background of an image using command line
PostPosted: Wed Dec 26, 2018 5:47 am  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
The real question is how you identify the background color... it is given as a parameter or should it be discovered (color of the 4 corner pixels, for instance?)

_________________
Image


Top
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group