image-rs/deflate-rs

gzip

oyvindln opened this issue ยท 6 comments

Implement support for compression with a gzip header/trailer.

๐Ÿ‘, any progress on this?

It's not something I have focused yet. I was planning to look at it after I've fixed the block splitting behaviour to emulate that of miniz/zlib (mostly done), and #7 (as these things don't require any API change).

My idea for this issue was to use the code from flate2 to create a crate for gzip headers as suggested here and use that. It should be relatively simple to implement as the gzip bits are after all just metadata and a checksum, and there are already crates for the checksum algorithm (CRC-32). Of course, anyone is welcome to contribute and it's very motivating to see someone interested in this.

Fixed in 8268a67

Awesome! Thanks!

You might want to update the README and state that the library is pure-Rust

It sort of says already, but I guess I could make it a bit clearer.