Results 1 to 2 of 2

Thread: PNG compression

  1. #1
    Member CompressMaster's Avatar
    Join Date
    Jun 2018
    Lovinobana, Slovakia
    Thanked 18 Times in 18 Posts

    PNG compression

    Hello users,

    I am looking for the BEST possible PNG compressor. I know that PNGs are already compressed and therefore´incompressible´, but it´s possible to fully decompress it and then apply better compressor for raw output - for example PRECOMP. I haven´t tested it, so I cannot say if it´s possible to shrink it losslessly further - I have a 5MB PNG file captured with LENOVO A-2010 smartphone with OpenCamera app. The "identical" (I needed to switch between apps between shots, so the scene may not be 100% identical) scene shooted without it takes approx. 980 KB, but JPEGs cannot be compressed below 50% - btw, I am working on my custom data compressor - BestComp - that will be able to compress ANY kind of data at least to 90% losslessly.

    Therefore I need to know if it´s possible to compress PNGs at least to 95% of original size losslessly of course.


  2. #2
    Administrator Shelwien's Avatar
    Join Date
    May 2008
    Kharkov, Ukraine
    Thanked 1,396 Times in 801 Posts
    PNGs are compressed with deflate, so all deflate recompression tools apply,
    and some compression is always possible due to huffman coding redundancy.

    In particular, you can try precomp, since it has explicit support for png parsing.
    Also maybe paq8px,paq8pxd.

    There're also optimization tools with various levels of loss, like pngout,
    which optimizes deflate coding, but keeps picture the same.
    Its possible to improve compression further by optimizing alpha plane, etc.

    Another good approach is to convert png to uncompressed bmp and compress that with relevant tools.
    That is, FLIF, BMF -S or paq8px.
    If original png generation method is known (eg. libpng), it could be possible to reconstruct it losslessly
    with best compression in this case.

  3. Thanks:

    CompressMaster (29th April 2019)

Similar Threads

  1. ec-idat (7-zip Deflate compression PNG)
    By lorents17 in forum Data Compression
    Replies: 8
    Last Post: 3rd September 2016, 13:37
  2. Better PNG IDAT compression with BWT and MTF does not work, why?
    By McSodbrenner in forum Data Compression
    Replies: 6
    Last Post: 11th August 2016, 18:47
  3. Replies: 13
    Last Post: 14th July 2016, 19:14
  4. Changing PNG compression
    By przemoc in forum Data Compression
    Replies: 5
    Last Post: 15th August 2012, 22:29
  5. Comparison of lossless PNG compression tools
    By Surfer in forum Data Compression
    Replies: 54
    Last Post: 19th September 2011, 23:58

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts