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

no longer pad PNG palette #2098

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

shinny456
Copy link
Contributor

@shinny456 shinny456 commented Jan 24, 2025

Removes gbagfx code that pads the PNG palette to 256 colors.

Description

When converting GBA graphics to PNG, if the gbapal file provided has less than 256 colors (and more than 16), the PNG palette is padded with zeros, because gbagfx assumes that the PNG format can only accept 16 or 256 colors when a palette is used (as seen by the removed comment). It might be worth checking if any PNGs in the repo have more colors than needed in their palette, and regenerating them if so.

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.

1 participant