Menu

#304 libpng alternative

1.0
open
nobody
None
2025-12-06
2023-12-04
No

I saw the discussion regarding annoying dependencies and potentially bundling libpng here: https://sourceforge.net/p/zint/tickets/300/?page=1#69bd

This reminded me of some minimal png encoder I stumbled upon some time ago. I was trying to find it again and came up with a list of potential candidates with varying feature sets and sizes. Putting them here just in case it might become useful in the future:

proper library:

Discussion

  • Git Lost

    Git Lost - 2023-12-04

    Thanks Axel, some of them look good, but given that libpng is the "industry standard" and massively tested I'd be wary of replacing it... also zlib is a needed, so I think any replacement would have that as a dependency as well. Perhaps one of them could be useful as a fall back, might be a convenient for people...

     
    • Axel Waggershauser

      I believe most if not all of them bring their own deflate implementation or don't use compression at all, so no zlib dependency. Getting rid of libpng but not zlib would indeed not gain too much.

       
  • Harald Oehlmann

    Harald Oehlmann - 2023-12-04

    Due to that, I provided the gif encoder years ago. I use it to avoid the libpng dependency.

     
  • DENG GOLD

    DENG GOLD - 2025-12-06

    It is entirely possible to add libpng and zlib to the build chain. I have already implemented this by modifying CMakeLists.txt on the basis of the original project.

     

Log in to post a comment.

MongoDB Logo MongoDB