It is currently Tue Apr 25, 2017 3:16 pm


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Leaving only one color in the image.
PostPosted: Wed Feb 15, 2017 2:54 am  (#1) 
Offline
GimpChat Member

Joined: Mar 06, 2015
Posts: 99
GIMP Version: 2.8.18
Operating System: Windows
OS Version: 10
GIMP Experience: Basic Level



Hello GIMP friends.

How can I keep only one color in the image ?
All other colors in the image will be gray-white (Saturation -100).
The effect in the attached picture I've made with the application "Camera 360" in my Android phone.

Thanks
Doron.


Attachments:
Red effect 04.JPG
Red effect 04.JPG [ 1.86 MiB | Viewed 439 times ]
Red effect 03.jpg
Red effect 03.jpg [ 1.86 MiB | Viewed 439 times ]
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: Leaving only one color in the image.
PostPosted: Wed Feb 15, 2017 3:21 am  (#2) 
Offline
GimpChat Member

Joined: Sep 23, 2016
Posts: 99
There is a tutorial here:
https://www.gimp.org/tutorials/Selective_Color/

_________________
Image


Top
 Post subject: Re: Leaving only one color in the image.
PostPosted: Wed Feb 15, 2017 3:22 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Apr 01, 2012
Posts: 4487
Location: In front of my computer
You mean 1 colour in a black and white picture ;)
That can be acheived with a mask
I'll post the link to a tutorial on it in a minute
I see blighty beat me to it
Here is Molly's tutorial viewtopic.php?f=23&t=2888&hilit=mask+tutorial&start=60

_________________
Image


Top
 Post subject: Re: Leaving only one color in the image.
PostPosted: Wed Feb 15, 2017 4:03 am  (#4) 
Offline
GimpChat Member

Joined: Mar 06, 2015
Posts: 99
I'm looking for the effect to work in the following way:
The user will select a color to keep in the image, for example: red, green, yellow .....
After selecting the color the user will start the effect.
the effect will make all other colors in the image to become gray and white without further action by the user.
the user will not need to select area or mask area.
this is the way the effect work in the application "Camera 360" in Android phone.

Thanks
Doron.


Attachments:
Screenshot_2017-02-15-11-07-46.jpg
Screenshot_2017-02-15-11-07-46.jpg [ 664.72 KiB | Viewed 414 times ]
Top
 Post subject: Re: Leaving only one color in the image.
PostPosted: Wed Feb 15, 2017 4:54 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Apr 01, 2012
Posts: 4487
Location: In front of my computer
Just tried it a different way in Gimp. select all the red parts with the fuzzy selector, threshhold on 24. Invert your selection then desaturate (luminosity). Depending, it may take longer than the other way - took me about an hour.
Attachment:
Red effect 04desaturated.JPG
Red effect 04desaturated.JPG [ 1.44 MiB | Viewed 399 times ]

_________________
Image


Top
 Post subject: Re: Leaving only one color in the image.
PostPosted: Wed Feb 15, 2017 5:06 am  (#6) 
Offline
GimpChat Member

Joined: Sep 23, 2016
Posts: 99
doronf2 wrote:
I'm looking for the effect to work in the following way:
The user will select a color to keep in the image, for example: red, green, yellow .....
After selecting the color the user will start the effect.
the effect will make all other colors in the image to become gray and white without further action by the user.
the user will not need to select area or mask area.
this is the way the effect work in the application "Camera 360" in Android phone.

Thanks
Doron.


This will require a script to do all the steps in one of the tutorials. Results will vary greatly, depending on the image. Can work well on one image, and on another image the result will not be good at all.

_________________
Image


Top
 Post subject: Re: Leaving only one color in the image.
PostPosted: Wed Feb 15, 2017 5:11 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Apr 01, 2012
Posts: 4487
Location: In front of my computer
There is another way ;)
With your picture in gimp open Hue/Saturation. With this one i just moved yellow and green saturation all the way to the left.
Attachment:
Red effect 04desaturatedc.JPG
Red effect 04desaturatedc.JPG [ 1.71 MiB | Viewed 391 times ]

You could do mostly the same for any image. Just don't move your colour you want to keep to the left.

_________________
Image


Last edited by sallyanne on Wed Feb 15, 2017 7:25 am, edited 1 time in total.

Top
 Post subject: Re: Leaving only one color in the image.
PostPosted: Wed Feb 15, 2017 5:16 am  (#8) 
Offline
GimpChat Member

Joined: Jan 20, 2013
Posts: 5956
Location: roma, italy
Doron,
I wrote a script to give a try.
This is my result, not exactly the same as what you show but close.
If you like, I can post it (after some cleaning)
Attachment:
MyTry.jpg
MyTry.jpg [ 2 MiB | Viewed 391 times ]

_________________
Vanitas vanitatum et omnia vanitas.


Top
 Post subject: Re: Leaving only one color in the image.
PostPosted: Wed Feb 15, 2017 5:20 am  (#9) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 3503
Very overlooked: in the "By color" selector you can use various selection criteria, and here "Hue" is an obvious choice.

_________________
Image


Top
 Post subject: Re: Leaving only one color in the image.
PostPosted: Wed Feb 15, 2017 5:30 am  (#10) 
Offline
GimpChat Member

Joined: Jan 20, 2013
Posts: 5956
Location: roma, italy
Excellent suggestion, Ofnuts, it's easy to select by hue, reverse, desaturate.
Great!
Use Ofnuts' rec, Doron.

_________________
Vanitas vanitatum et omnia vanitas.


Top
Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) How to change color of this image for best and sharp color ?

7

No new posts Attachment(s) Changing image to different color

52

No new posts Attachment(s) How to change color in this image for best ?

14

No new posts Attachment(s) Changing color of an image

22

No new posts Leaving again :(

19



* Login  



Powered by phpBB3 © phpBB Group