Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: add JASC-PAL palette support to rescomp #23

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 3 comments
Open

Comments

@GoogleCodeExporter
Copy link

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

@nolddor
Copy link
Contributor

nolddor commented Jan 15, 2016

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:

captura

PS: line 3 values could be (2 for 2bpp, 16 for 4bpp or 256 for a 8bpp palette)

@Stephane-D Stephane-D self-assigned this Jan 16, 2016
@Stephane-D Stephane-D changed the title Feature request: add Paint Shop Pro palette support to rescomp Feature request: add JASC-PAL palette support to rescomp Jan 16, 2016
@Stephane-D
Copy link
Owner

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 :)

@derainm
Copy link

derainm commented Mar 9, 2017

ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants