It is currently 29 Sep 2020, 20:09

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Fill Average Color Script for GIMP to aid in doing Polygon Art

Share your Python Fu Scripts/plug-ins for GIMP here
tim
GL Blogger

Fill Average Color Script for GIMP to aid in doing Polygon Art

Post#1 by tim » 27 Aug 2017, 22:59


Polygon Art with the aid of Fill Average Color Script featuring Bruce Lee/
This script is to aid in creating polygon art.

It will get average color of selected area on layer called "Source" and fill selected area with that color on active layer.
Download
draw_average_color_from_source_layer.zip
zipped .py file (unzip, put in your GIMP's /plug-ins/ folder)
(1.25 KiB) Downloaded 360 times
draw_average_color_from_source_layer.py
version 2. Major friendly feature. Subtract [Alpha to Selection of layer] before applying average color of selection.
(2.72 KiB) Downloaded 136 times
draw_average_color_from_source_layer.py
version 3. Allow multiple selection, where each area will have it's own average color. (requested by LVB)
(3.67 KiB) Downloaded 97 times
draw_average_color_from_source_layer.py
version 4. Add option to grow selection of each pathed area by number of pixels to intersect with original selection to get pixel accuracy.
(4.29 KiB) Downloaded 105 times
draw_average_color_from_source_layer.py
version 5. Speed enhancement. Got rid of undo-group call and use GIMP 2.10 drawable_edit_fill instead of old method (Also reducing Undo history cache to 16MB seemed to speed it up).
(4.53 KiB) Downloaded 73 times
draw_average_color_from_source_layer.py
version 6. Speed enhancement. Added "Paint-brush instead of Edit-fill" option for speed.
(5.06 KiB) Downloaded 88 times
draw_average_color_from_source_layer.py
version 7. Speed enhancement. Added option to say "NO" to dodging filled areas because when we work on a new blank layer, there's no need to call an extra subtract alpha to selection call.
(5.68 KiB) Downloaded 85 times
draw_average_color_from_source_layer.py
version 8. Speed Enhancement using Edit-blend.
Crossing my fingers. I think I got this time with speed enhancement by using Edit-Blend instead of other methods.
(5.97 KiB) Downloaded 170 times
Script Menu Location: Python-Fu/Fill Average Color

Instructions:
1. Have an image opened with a layer of image that is used as your 'Source'.
2. Rename that layer to 'Source'.
3. Create new layer above 'Source' layer and make it active. Fills will be on this layer.
4. Use the :free_select: (Free select tool) and make a shape selection on active layer.
5. Run script (Python-Fu/Fill Average Color).
6. Now keep making other selections and Ctrl-F to repeat the script.
7. And you'll finish with a piece of polygon art.
8. Optionally, you can create a 50% opacity black layer between your 'Source' layer and your working layer so that you'll easily be able to tell which parts you have done and which parts aren't done.

Here's a sample of work in progress.
emma_watson_polygon_art_wip.jpg
emma_watson_polygon_art_wip.jpg (84.05 KiB) Viewed 4899 times
aka Tin
:tree_02:
Tin's: Favorite Index | Simple Art === fb4yt video search | fb4yt recent video views report
Lottery numbers from image | Interested Members in TLF
Paying for hosting is to support my hobby, and donating money made from ads to The Red Cross.
         
1

Pat625
Tutorial Creator

Post#2 by Pat625 » 27 Aug 2017, 23:10


I like that, Tin. I'll have to try that. It seems that would be much better than having a lot of different colors over the face which distorts and you can't tell who it is.
1

Issabella
Script Tester

Post#3 by Issabella » 28 Aug 2017, 17:17


:gimp_clap: Tin, I love your script and what you did in your result. But how? Please, Could you explain it in a simple way? Thank you so much. :gimp_clap:
Issabella

Don’t be afraid to start over. It’s a new chance to rebuild what you want.
0

tim
GL Blogger

Post#4 by tim » 28 Aug 2017, 17:42


I have instructions, that is as detailed as i could explain it.
Basically all the script does is it takes the average color of your selection of the layer named 'Source' and fills the selection on active layer with it.
So if you have your 'Source' layer, create a working layer on top, and make a selection on working layer and run script, it'll fill your selection with average color taken from 'Source' layer.
And then you do this repeatedly for reach polygon you select.
aka Tin
:tree_02:
Tin's: Favorite Index | Simple Art === fb4yt video search | fb4yt recent video views report
Lottery numbers from image | Interested Members in TLF
Paying for hosting is to support my hobby, and donating money made from ads to The Red Cross.
         
0

Issabella
Script Tester

Post#5 by Issabella » 28 Aug 2017, 19:50


Thank you Tin. I did that but my result was so dull... hehehe I'll try it again. :lol:
Issabella

Don’t be afraid to start over. It’s a new chance to rebuild what you want.
0

Pat625
Tutorial Creator

Post#6 by Pat625 » 28 Aug 2017, 21:53


Same here. I think I did not get a bright enough of an image. Need to start over.
0

Issabella
Script Tester

Post#7 by Issabella » 30 Aug 2017, 09:44


My new try to this nice filter, Tin. I think that you got a bright result.
If my result is acceptable, please let me know as I thought of a way to make the selections easier. :)
Attachments
496b53016_TIN_FillAverageColour.jpg
496b53016_TIN_FillAverageColour.jpg (104.78 KiB) Viewed 4801 times
Issabella

Don’t be afraid to start over. It’s a new chance to rebuild what you want.
0

tim
GL Blogger

Post#8 by tim » 30 Aug 2017, 15:03


your result looks fine!
aka Tin
:tree_02:
Tin's: Favorite Index | Simple Art === fb4yt video search | fb4yt recent video views report
Lottery numbers from image | Interested Members in TLF
Paying for hosting is to support my hobby, and donating money made from ads to The Red Cross.
         
0

Issabella
Script Tester

Post#9 by Issabella » 30 Aug 2017, 16:29


OK; maybe this PDF could help someone to make selections. I did it like that. :)
Attachments
Poligon Art_Tin Fill Average Colour.zip
(2.41 MiB) Downloaded 139 times
Issabella

Don’t be afraid to start over. It’s a new chance to rebuild what you want.
0

tim
GL Blogger

Post#10 by tim » 30 Aug 2017, 17:01


Here I used your image and did this manually to her face.
issa_image_polygon_art_test_2.jpg
issa_image_polygon_art_test_2.jpg (135.29 KiB) Viewed 4456 times
aka Tin
:tree_02:
Tin's: Favorite Index | Simple Art === fb4yt video search | fb4yt recent video views report
Lottery numbers from image | Interested Members in TLF
Paying for hosting is to support my hobby, and donating money made from ads to The Red Cross.
         
0


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 35 guests