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

Lynx background image palette issues #9

Open
haroldo-ok opened this issue Dec 30, 2020 · 1 comment
Open

Lynx background image palette issues #9

haroldo-ok opened this issue Dec 30, 2020 · 1 comment
Labels
atari-lynx bug Something isn't working

Comments

@haroldo-ok
Copy link
Owner

No description provided.

@haroldo-ok haroldo-ok added atari-lynx bug Something isn't working labels Dec 30, 2020
@haroldo-ok
Copy link
Owner Author

Progress so far:

  • As per Background palette is not being displayed correctly on Lynx 8bit-Dude/8bit-Unity#12, the problem is that, while the palette colors are correct, the generated PNG is 8bpp, instead of 4bpp;
  • Unfortunately, the version of PIL that's shipped with 8bit-Unity seems incapable of writing 4bpp images;
  • Researched a few Node.js packages to handle PNG files, but while most of them are able to read 4bpp images, almost none seems able to write them (almost all can write 24bpp and some can write 8bpp); from the documentation, it sounds like node-canvas could, maybe do the trick, but it is not certain;
  • Tried using ImageMagick, but while it has an option to use a palette, it automatically deletes unused colors, and there seems to be no way to prevent this behavior;
  • Maybe use GIMP script-fu and call it from the command line? That may require some research.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
atari-lynx bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant