Skip to content

Add Old Palette Chunk 0x0004 - #25

Merged
TheCyberRonin merged 2 commits into
TheCyberRonin:developfrom
thred:master
Sep 4, 2026
Merged

Add Old Palette Chunk 0x0004#25
TheCyberRonin merged 2 commits into
TheCyberRonin:developfrom
thred:master

Conversation

@thred

@thred thred commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Sometimes Aseprite is still using the very old palette chunk (0x0004), e.g. when creating an indexed file with C64 palette (no transparency).

As stated by the specs: Aseprite v1.3.5 writes this chunk if the palette doesn't have alpha channel and contains 256 colors or less (because this chunk is smaller)

This commit adds support for the chunk.

Fixes #24

TheCyberRonin and others added 2 commits October 8, 2023 20:34
feat: Add support for translating layer flags
Sometimes Aseprite is still using the very old palette chunk (0x0004),
e.g. when creating an indexed file with C64 palette (no transparency).

As stated by the specs: Aseprite v1.3.5 writes this chunk if the palette
doesn't have alpha channel and contains 256 colors or less (because
this chunk is smaller)

This commit adds support for the chunk.

fixes TheCyberRonin#24

@TheCyberRonin TheCyberRonin left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it out with the provided Aseprite file, it seems to have the necessary data. Thanks so much for contributing! I'll see about rolling a new revision so that it's updated on NPM.

@TheCyberRonin
TheCyberRonin changed the base branch from master to develop September 4, 2026 12:27
@TheCyberRonin
TheCyberRonin merged commit 38a421f into TheCyberRonin:develop Sep 4, 2026
@thred

thred commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for merging and sharing. I'm using the parser with a build script to export images but unfortunately the palette was missing.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Old Palette Chunk 0x0004

2 participants