Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.gpl Palette to Image (Plugin/Script?)
#8
(04-09-2021, 10:44 PM)Ofnuts Wrote:
(04-09-2021, 09:06 PM)barrubba Wrote:
(12-12-2020, 09:04 AM)rich2005 Wrote: I assumed python 2.7 Everything in one folder, that is the easiest way, saves some long paths.

A bit of  spare time yesterday, so a try out in a Win10 (VM) to check that it works there. For anyone interested.

First installed python from  https://www.python.org/ftp/python/2.7.8/....amd64.msi  (all users, default location C:\Python27 )
Next PIL from https://pypi.python.org/packages/2.7/P/P...-py2.7.exe

Get a palette.txt file from Gimp
script palette_generator.py and palette.txt in the python folder
Run from there to generate palette.png   screenshot: https://i.imgur.com/Kmec5yu.jpg

How i can add colormap in batch to multiple image/layers ?
i've tried BIMP but doesn't support Colormap plugin.
After Colormap i have simply to output same set of images.
Thank you

Possibly (untested)
  • Open one layer on convert to indexed to generate the colormap (or force the color map with a palette)
  • File ➤ Open as layers the other layers (the dialog lets you select multiple files at once), they will be automatically converted to use the colormap of the image
  • Use a script such as my own ofn-export-layers to export the layers to individual files.

Ofnut Reply! Wink Great! Smile
There is a way to mantain filename when importing as layer? so i can export filename as well with your Export-layers
thank you
Reply


Messages In This Thread
RE: .gpl Palette to Image (Plugin/Script?) - by barrubba - 04-10-2021, 12:49 AM

Forum Jump: