Skip to content

Python script, which combines palette of images, useful for SGDK, for example, you want to use 1 palette for all entity.

Notifications You must be signed in to change notification settings

bolon667/convertImagesToOne16ColorsPallete

Repository files navigation

Convert images to One 16Colors palette. Python script.

Python script, which combines palette of images. It's useful for SGDK, for example, you want to use 1 palette for all entity.

How to use

  1. Put images in imagesIn folder
  2. Run convertImagesToOne16BitPalette.py
  3. Result will be in imagesOut folder

Installing dependisies

From program folder, run this command in cmd

pip install -r requirements.txt

How it works

  1. Script combines all your images into one atlas.
  2. Reducing palette of atlas
  3. Cropping images from atlas to get images back.

Additionaly

You also can use:

  • convertImages.py to reduce palette to 16 colors and resize (pls rewrite script for your needs)
  • resizeImages.py to change size of images (needs rewriting for your needs).
  • createAnimation.py to create spriteSheet from frames. You should give appropriate names to images, like 1.png, 2.png... and so on.
  • reducePaletteTo16Colors.py to reduce palette to 16 colors

About

Python script, which combines palette of images, useful for SGDK, for example, you want to use 1 palette for all entity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages