fhanau / Efficient-Compression-Tool

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

--disable-png and --disable-jpg are ignored when -gzip is given. #133

Closed danjujan closed 1 year ago

danjujan commented 1 year ago

I noticed that the -gzip command line option interacts with --disable-png or --disable-jpg:

./ect --disable-png --disable-jpg image.png image.jpg
No compatible files found

./ect -gzip --disable-png --disable-jpg image.png image.jpg
Processed 2 files
Saved 40.77KB out of 276.14KB (14.7637%)

Is this intended behavior?

fhanau commented 1 year ago

Hi, the --disable-* flags were designed to disable optimizing the given file formats. This isn't working correctly here - I'll prepare a fix in the coming days.

fhanau commented 1 year ago

Fixed the issue – ECT will now respect the disable flags and not compress the specified files, but create a gzip archive. Thanks for reporting this!