It is currently 22 Jan 2022, 09:36

• Featuring Members' Images •
Could be related to 'Palette from Tile Grid Plug-in'
david
tim
Issabella
tim
skinnyhouse

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

Palette from Tile Grid Plug-in

Share your Python Fu Scripts/plug-ins for GIMP here
neurolurker
Forum Member
33rd Place
68 Post(s)

Re: Palette from Tile Grid Plug-in

Post#11 by neurolurker » 19 May 2019, 15:11


Did you hear my cheering? Works perfectly!
GIMP Learn rocks...

tim
GL Blogger
1st Place
5769 Post(s)

Post#12 by tim » 19 May 2019, 15:53


Did I hear it? I thought it was a earthquake over here in Canada hahahha
aka Tin
World Food Program | Good Deeds Forum

         

nidhogg
Forum Member
27th Place
76 Post(s)

Post#13 by nidhogg » 19 May 2019, 18:39


It was supermassive cheering, the shock wave just reached here and collapsed all my lego dinos.
I think it will travel across the earth multiple times, take cover while you can!
GIMP Learn rocks...

tim
GL Blogger
1st Place
5769 Post(s)

Post#14 by tim » 19 May 2019, 18:44


you got lego dinos? hahaha that's great!.
aka Tin
World Food Program | Good Deeds Forum

         

nidhogg
Forum Member
27th Place
76 Post(s)

Post#15 by nidhogg » 19 May 2019, 18:56


Just couple figurines, I'm feeling restless and thought to continue your funny post. But I had lot of star wars legos back in the early 80s, they were super popular among children.
The nowadays stuff they have would probably knock me out, just saw a documentary last week about computer programmable AI robot legos.

Anyway, back to the topic from lego tiles. This plug-in is gridiculously great!
I didn't have a problem with images that had some white space around the tiles which is nice,
because there are lot of those type of palette images.

Here I found few must-haves if you're into retro 8-bit etc.
I do remember having all these as a download (probably from deviant-art) few years ago but it was pretty fast done with this plug-in.

http://fornaxvoid.com/colorpalettes/
GIMP Learn rocks...

Wallace
Global Moderator
14th Place
906 Post(s)

Post#16 by Wallace » 20 May 2019, 01:30


Found this website, that seems to have a lot of color palettes.

https://www.color-hex.com/color-palettes/
screencapture-color-hex-color-palettes-2019-05-19-18_29_12.png
screencapture-color-hex-color-palettes-2019-05-19-18_29_12.png # (98.38 KiB) Viewed 5274 times (Thumbnail | Recognize | Sq Tile | LNFI)
Image

Archie
Forum Member
33rd Place
68 Post(s)

Post#17 by Archie » 21 May 2019, 02:57


I will be using this. It's one of the tedious things I don't really enjoy doing. Thanks Tim. Thanks for the links guys.
GIMP Learn rocks...

User avatar
Lenny
Guests

Post#18 by Lenny » 26 Oct 2019, 19:24


neurolurker wrote:
19 May 2019, 11:36

If there's any further development interest in the script, in my opinion it would be useful to have a variable sample area to use for source images less well organized than gradients. Such as paintings or photos. Some [well, at least one] "natural media" painting programs offer this feature as part of their [its] palette-making.
I love to try to copy paintings from the masters in order to improve my digital painting skills. It is helpful to have a palette of the colors used by the artist of the piece. When I saw this script, I hoped it would help, but then noticed it was focused on tiled grids. I also tried the color chips script, but the randomness kept me from getting a palette.

I thought and thought about a way to modify the color-chips script to size the chips evenly (20 x 20 px) and orderly put the chips into a tiled grid, calling the images grid layout script. After depleting my extremely limited and ancient knowledge of scripting, I gave up on that quest.

Well, as it turns out, the "palette from tile grid" script does not need a tile grid at all. I tried it on a John Singer Sargent painting. It gave fairly good results as is, but occasionally, when using the palette, the paint color would be quite unexpected. So, I figured out the coding, and changed the sample merge radius to 10 px (from Tin's original 3 px), which for my purposes, sampled a larger area of each imaginary grid, and showed a much more consistent color for that 20 x 20 px part of the painting.

In order to stay under the script's maximum 64 columns/rows for the palette, I first scaled the image down, with one of the dimensions being 700 px. Then I cropped off a tiny bit of the other dimension to the next lower multiple of 20 (e.g., 936 px would be cropped to 920). Then, I divided the cropped image width and height by 20 px. and input those results in the scripts input box (in my example, I think it was 50 rows and 35 columns for the palette output.

I'm amazed at how well @tim's script works and thank him for it. Here are images to help explain the procedure. I haven't finished the painting copy, but wanted to show how accurate the colors in my under-painting are from the derived palette.

[image]
Portrait.jpg
Portrait.jpg # (97.82 KiB) Viewed 5048 times (Thumbnail | Recognize | Sq Tile | LNFI)
[/image]

I'll probably use this script with this modification permanently, so that is how I re-installed it. If you want to experiment and/or change it back to the original, here is where it is in the script. Alternately, you could keep both, renaming the modified script as "painting-palette-from-photo", or something similar. That would require changing the name of the modified script in the "register" section further down in the script, allowing it to show up on your python-fu dropdown menu.

[image]
ScriptModification.jpg
ScriptModification.jpg # (84.64 KiB) Viewed 5048 times (Thumbnail | Recognize | Sq Tile | LNFI)
[/image]
GIMP Learn rocks...

Pat625
Tutorial Creator
2nd Place
4514 Post(s)

Post#19 by Pat625 » 27 Oct 2019, 22:39


Tin, I could not find the link to the Version 3 you mentioned. Where can I find it?

neurolurker
Forum Member
33rd Place
68 Post(s)

Post#20 by neurolurker » 28 Oct 2019, 05:17


Pat, I believe the "third version" actually refers to another script for exporting palettes:

"For exporting to html table try: viewtopic.php?f=3&t=1643&p=19134"

and not the palette-making script itself, which has only two versions.
GIMP Learn rocks...


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 New Topic
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 13 guests