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
How create indexed image? #389
Comments
There is no generic interface yet to make use of these functions. But you can simply save the image as GIF (paletted PNG is not supported yet), that will reduce the image to 256 colors. |
So there is no way of creating PNG with indexed color profile? Example of use case: https://zola.discourse.group/t/image-processing-using-indexed-colors-profiles/499/3 |
I believe that the PNG crate supports it now (see Encoder::set_palette), but there aren't plans to expose that functionality in this higher level crate. |
I would recommend opening a new issue, for example to discuss a potential interface for this. For comparison |
I found function "image::imageops::colorops::dither", what convert pixel colors, but image still RGB. "image::imageops::colorops::index_colors" return indexes, not image. So how create custom image with palette?
The text was updated successfully, but these errors were encountered: