fhanau / Efficient-Compression-Tool

Fast and effective C++ file optimizer
Apache License 2.0
596 stars 41 forks source link

-gzip 1.gz doesn`t keep original filename (possibly of input file size) #95

Closed bUbblE1968 closed 2 years ago

bUbblE1968 commented 2 years ago

sample file - gzipped mpv.exe from here or just 50+mb file: https://sourceforge.net/projects/mpv-player-windows/files/64bit/mpv-x86_64-20220710-git-0044c19.7z/download

fhanau commented 2 years ago

I agree that this is a useful feature to have. It will require some restructuring of the gzip-specific code though, so it'll take some time to implement.

fhanau commented 2 years ago

Should be fixed in the latest commit – gzipping adds the file name and optimizing a gzipped file preserves the stored file name. Let me know if you encounter any issues.