Author Topic: GIMP - script-fu for pixel art - get palette and draw it into another image  (Read 416 times)

froggy77

  • Full Member
  • ***
  • Posts: 107
    • View Profile
Hello,

I created a script to be used with GIMP that it is supposed to be useful for pixel artists.
The aim is to get the colors palette of an image and to help to detect the similar colors that could be replaced.

This is a beta version, I hope there will be not too many bugs. Please save your work before. ::)
Don't hesitate to report bugs.

See attachment file


What is this kind of script?
It is explained here: https://docs.gimp.org/en/gimp-concepts-script-fu.html
 (There is often a translation of docs.gimp.org pages, just replace "en" by "fr" to get for example the french page: https://docs.gimp.org/fr/gimp-concepts-script-fu.html , it italian, es spanish, de ...)

Where to copy it?
It is explained here:  https://docs.gimp.org/en/install-script-fu.html

Some explanations

- It appears in the menu /Filters/pixelart-get-palette of GIMP
- It opens a pop-up window where you can change the width and the height of the "tile" which represents one color.
By default, I put width = 16 pixels and height = 10 pixels, but you can change these values editing the script.
SF-ADJUSTMENT    "Width"        '(16 1 50 1 10 0 SF-SLIDER)
SF-ADJUSTMENT    "Height"        '(10 1 50 1 10 0 SF-SLIDER)
- It allows to get palette of the selection or the image and draw it into another image.
- There is a maximum of 256 colors in your image or in your selection, otherwise the script will not work.
- If there is a selection, only the selected layer and its selection are taken into account.
- If there is no selection, all layers are taken into account.
- For the moment, the script does not sort colors. Maybe in the future.


Several years ago, I posted some scripts on http://registry.gimp.org/ but the site is still in maintenance. So, why not to share it to Solarus community which is one of my favorite forum and where I noticed several gimp users and pixel artists... ;)
« Last Edit: February 24, 2018, 11:13:56 pm by froggy77 »