Menu

#2 Make pngnq API

open
nobody
5
2009-02-16
2009-02-16
No

Is there any plans on making an API to pgnnq ?

This quantizer is quite useful, and I believe turning it into an API would make it even more useful.

If I wanted to add the algorithm into my own software, I would have to carve out lots of code, remove global variables etc.

My wishes would then be, making a libpngnq and make the executable a simple program that links with it. In my case I already have a RGBA chunk in memory, so I wouldnt need any file I/O.

I could even put a helping hand into it!

- Oyvind Idland

Discussion

  • Stuart Coyle

    Stuart Coyle - 2009-02-17

    This is a good idea. I'm looking at the tracker patch item 2521477. I think it may be a good time to
    create an API from the code submitted there. Give me a couple of days...I'm busy at the moment.

     
  • Øyvind Idland

    Øyvind Idland - 2009-02-17

    Nice, looking forward to it :)

    PS another (simple) feature I would like:

    Would be be possible to have an option, where fully transparent
    pixels would have highest priority ?

    In my case, I am rendering graphics on a 100% transparent background. In
    some cases maybe 95% or more of the canvas is covered, leaving small corners
    and holes of transparent pixels. I need to keep these small holes 100% transparent,
    and make sure that these dont get quantized into 10% opacity instead of 0.
    Maybe this is already taken care off.. hope this makes sense :)

    Thanks!

    - Oyvind Idland

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.