SGDK
SGDK copied to clipboard
Feature request: add JASC-PAL palette support to rescomp
Here is the format description :
.pal Paint Shop Pro colour palette file:
Contains the colour palette table saved from a 16 or 256 colour image. It can
be loaded for another image and this provides a means of copying colour
palettes from one image to another.
These files are text editable. The format of the file is as follows:
- The first line contains the header "JASC-PAL" (without the quotes).
- The second line contains the palette file version. For example "0100"
(without the quotes)
- The third line contains the number of colours, either 16 or 256.
- Subsequent lines contain the Red, Green and Blue components of each palette
entry, with a space between each of the Red, Green and Blue numbers. These
numbers are in decimal, so each attribute should be in the range 0 to 255.
Original issue reported on code.google.com by Stephane.D on 16 Jun 2014 at 8:54
Title should be changed to Add JASC-PAL files support to rescomp, although this format was originally used by Jasc Software in PaintShop Pro. It is used in a lot of painting program like IrfanView, GraphicGale and I.Mage
I'm using GraphicGale Free Edition and here is an example for a 4bpp 16colors palette:
PS: line 3 values could be (2 for 2bpp, 16 for 4bpp or 256 for a 8bpp palette)
Thanks for the example, i have also 2 files sitting there so i can make some tests with them. I will try to add that for the next version of rescomp :)
ty