Comments (3)
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:
- Do you know how to use libimagequant to generate palette and remapped pixels?
- 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.
from libimagequant.
Thanks, I think I know how to do it.
from libimagequant.
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
from libimagequant.
Related Issues (20)
- smarter color reducer? (considering visual similarity) HOT 2
- Duplicate transparency palette entry generated since v4.0.0 with some inputs HOT 1
- 2.18.0: build fails on linking HOT 5
- faster in c++ than in rust? HOT 1
- Could libimagequant be extended to more than 256 colours? HOT 1
- Please don't hide Cargo.lock HOT 2
- imagequant-sys: Makefile problem HOT 3
- keep alpha channel HOT 1
- libimagequant_sys: missing shared library HOT 5
- Generate c static library problem HOT 5
- Problems from Java developers
- Different results on ppc64le HOT 7
- Latest version doesn't appear to be compiled HOT 3
- Test failure on big-endian HOT 2
- Process images with premultiplied alpha HOT 2
- Some question about LISENCE. HOT 1
- The color channel of the palette, red and blue reverse,Only the following code is the correct color result HOT 4
- can not get the target .a file by use cargo build HOT 6
- Big resolution images crash the library
- latest version of libimagequant seems not be compiled on Windows HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libimagequant.