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

Has any demo to compress APNG by Libimagequant ? #6

Closed
jeakey opened this issue Aug 3, 2017 · 3 comments
Closed

Has any demo to compress APNG by Libimagequant ? #6

jeakey opened this issue Aug 3, 2017 · 3 comments

Comments

@jeakey
Copy link

jeakey commented Aug 3, 2017

Libimagequant can generate a single palette that is optimal for multiple images , but I don't kown how to compress APNG file , has any demo to compress APNG by Libimagequant?
thanks~

@kornelski
Copy link
Member

kornelski commented Aug 3, 2017

Libimagequant, by itself, doesn't support writing of any PNG files whatsoever. It only converts in-memory uncompressed pixels to in-memory uncompressed pixels in a different layout.

Any image format loading or saving (whether PNG, APNG, GIF, BMP, IFF-ILBM or smoke signals) is out of scope and entirely up to you.

So the problem is split in two parts:

  1. Do you know how to use libimagequant to generate palette and remapped pixels?
  2. Do you know how to write an APNG file with any palette and any pixels?

With 1 I can help you. For 2, you need to find a library that can do it.

@jeakey
Copy link
Author

jeakey commented Aug 4, 2017

Thanks, I think I know how to do it.

@mateoconlechuga
Copy link
Contributor

If you need any more APNG things, we have code to write an APNG file with optimization in addition to a script to build and patch libpng with libpng-apng since it doesn't come standard. Hope this is useful for you!

https://github.com/CE-Programming/CEmu/tree/master/gui/qt/capture

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

No branches or pull requests

3 participants