Is there any tool out there to un-deflate zlib streams?
What I mean is take a file with zlib data (a .gz or .png or .swf or .pdf or whatever) and replace it with zlib level 0 ("store") data. The idea is that it's uncompressed but is still valid data that can be loaded by the target application.
This is different than what tools like precomp do, which try to restore the original zlib stream to be lossless in bytes.
Obviously there's a robustness problem. Tools like precomp are safe against incorrectly identified deflate streams because they restore the original bytes exactly. A deflate-to-store transform could corrupt data if it made a mistake, so it would need to be more aware of the file format it was working in, not just blindly look for deflate streams.
The idea is to avoid the re-zlibbing, which is extremely slow at decode time. It's also particularly silly for something like loading a PNG into memory, since as soon as you use that PNG it will just be un-deflated again. Ideally with things like PNGs I would transform them all to zlib level 0 (store) before compressing.