Hi guys I need assistance with the compression levels using zlib. I am trying to code an application for a game which has zlib compression for the files.
I am able to decompress the files without any issues but I cannot recompress the files to the same level. The recompressed files always slightly bigger. I need the compressed files to be either the same size or smaller as the game will not read files which are bigger.
My application is coded in c#. I have tried using zlib.net and also the system.io.compression namespace, but both do not compress the files enough even with the maximum compression specified.
For the System.IO.Compression namespace I am specifying CompressionLevel.Optimal.
For zlib.net I am specifying zlib.zlibConst.Z_BEST_COMPRESSION .
I am attaching the files below, I have included the original file as well as files compressed using zlib.net and system.io.compression.
Thanks for any assistance rendered:
Download the files here: http://www13.zippyshare.com/v/j7EsgTDo/file.html