Code Monkey home page Code Monkey logo

Comments (3)

kornelski avatar kornelski commented on July 24, 2024

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.

from libimagequant.

jeakey avatar jeakey commented on July 24, 2024

Thanks, I think I know how to do it.

from libimagequant.

mateoconlechuga avatar mateoconlechuga commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.