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

Turn off color quantization #43

Closed
rvorias opened this issue Dec 6, 2021 · 2 comments
Closed

Turn off color quantization #43

rvorias opened this issue Dec 6, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@rvorias
Copy link

rvorias commented Dec 6, 2021

Hi,

I'm importing a bunch of png that represent slices of a .vox model.
All the pngs combined have a specific set of e.g. 20 colors.
However, the colors are getting quantized and some colors are getting squashed.

Is there an option to turn off color quantization?

@Zarbuz
Copy link
Owner

Zarbuz commented Dec 6, 2021

You can force to use the same palette that the existing palette in your different .vox

@rvorias
Copy link
Author

rvorias commented Dec 7, 2021

I tried adding a palette with --palette and also some stuff with --cm but it didn't work.
Right now I just changed this:

return ProcessImagePixels((Image)image, quantizedPalette);

To:

return image;

And it works.

@Zarbuz Zarbuz added the enhancement New feature or request label Feb 3, 2022
@Zarbuz Zarbuz closed this as completed Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants