It is currently 21 Feb 2018, 03:39

GIMP Python Fu ScriptsLeave 1 Colour (ancillary) (Showcase | Slideshow)

Share your Python Fu scripts for GIMP here
User avatar
dinasset

Script Coder
View: Showcase | Slideshow
Topic Posts: 7/20
Posts: 718
Joined: 20 Jan 2017, 11:50
Cash on hand: 3,537.35 GLP
Gender: Guy
Location: Roma (Italy)
x 91
x 128
Italy

Leave 1 Colour (ancillary)

Post#1 by dinasset » 20 May 2017, 16:33


Another ancillary function (created on a request from doronf2).
Select a colour (hue) and obtain a new image where that hue is preserved, while all other colours become gray.
Here the filter:
DIEGO_COLOURS_Leave1color.zip #
(658 Bytes) Downloaded 39 times
Here a transformation example:
a) source
fiore_di_loto.jpg
fiore_di_loto.jpg # (482.85 KiB) Viewed 346 times (Watermarked | Thumbnail)
b) select the hue of the flower as the one to preserve
fiore_di_loto_LEAVE-FLOWER-COLOUR .jpg
fiore_di_loto_LEAVE-FLOWER-COLOUR .jpg # (521.79 KiB) Viewed 346 times (Watermarked | Thumbnail)
c) select the hue of the background as the one to preserve
fiore_di_loto_LEAVE-BG-COLOUR .jpg
fiore_di_loto_LEAVE-BG-COLOUR .jpg # (509.01 KiB) Viewed 346 times (Watermarked | Thumbnail)
0 x




Registered members enjoy ads-free content
User avatar
tim
Administrator
View: Showcase | Slideshow
Topic Posts: 5/20
Posts: 2163
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,959.44 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1209
x 258
Contact:
Canada

Post#2 by tim » 20 May 2017, 17:05


Wow, it looks like it works really good.
0 x



aka Tin
Image gimplearn.net                                              

User avatar
dinasset

Script Coder
View: Showcase | Slideshow
Topic Posts: 7/20
Posts: 718
Joined: 20 Jan 2017, 11:50
Cash on hand: 3,537.35 GLP
Gender: Guy
Location: Roma (Italy)
x 91
x 128
Italy

Post#3 by dinasset » 20 May 2017, 17:06


Just to play...
0 x




User avatar
tim
Administrator
View: Showcase | Slideshow
Topic Posts: 5/20
Posts: 2163
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,959.44 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1209
x 258
Contact:
Canada

Post#4 by tim » 20 May 2017, 17:21


Calgary Peace Bridge, one color(red) left behind.
Attachments
calgary_peace_bridge_one_color.png
calgary_peace_bridge_one_color.png # (1.02 MiB) Viewed 334 times (Watermarked | Thumbnail)
1 x



aka Tin
Image gimplearn.net                                              

User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 6/20
Posts: 2232
Joined: 28 Sep 2016, 03:35
Cash on hand: 13,241.55 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 8
x 470
United States of America

Post#5 by Pat625 » 20 May 2017, 22:50


Do you do anything to prepare the photo before using the script?
0 x




User avatar
tim
Administrator
View: Showcase | Slideshow
Topic Posts: 5/20
Posts: 2163
Joined: 26 Sep 2016, 00:16
Cash on hand: 7,959.44 GLP
Bank: 51,356.25 GLP
Gender: Guy
Location: Victoria, BC
Website: https://gimplearn.net
Operating System: Windows
GIMP Version: 2.8.22
My Personal Blog
My FineArtAmerica
x 1209
x 258
Contact:
Canada

Post#6 by tim » 20 May 2017, 22:54


Nope you just select the color that you'd like to keep.
0 x



aka Tin
Image gimplearn.net                                              

User avatar
Pat625
Script Tester
View: Showcase | Slideshow
Topic Posts: 6/20
Posts: 2232
Joined: 28 Sep 2016, 03:35
Cash on hand: 13,241.55 GLP
Gender: Gal
Location: USA
Operating System: Windows
GIMP Version: 2.8.22
x 8
x 470
United States of America

Post#7 by Pat625 » 20 May 2017, 23:07


Tim, I have not had this before. I click on the hue color to get the palette and color picker. Use the picker and choose a color but that is not the color that is displayed. Usually it puts a dull color even if I pick something bright. The script, therefore, does not run.
0 x




Post Reply

Last 20 Members Who Visited This Topic

User avatar tim (4), User avatar david (4), User avatar Pat625 (3), User avatar RJKD (1), User avatar gnerd (3), User avatar leopardo-40 (1), User avatar oldmangrumpy (2), User avatar PhotoMaster (5)

  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments Only) •
1: RJKD
2: Issabella
3: Conbagui
4: RJKD
5: Ella
6: tim
7: animicule

Who is online

Users browsing this forum: No registered users and 1 guest