fhanau / Efficient-Compression-Tool

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

Decoding error - print name of the bad file #114

Closed K0-RR closed 1 year ago

K0-RR commented 2 years ago

For some files I'm getting these errors. The problem is I have 16 GB of photos and ECT is not telling me which files it could not decode.

Decoding error 28: incorrect PNG signature, it's no PNG or corrupted
Decoding error 57: invalid CRC encountered (checking CRC can be disabled)
fhanau commented 2 years ago

Providing the file name with the error message is a good idea and will make ECT easier to use when compressing an entire folder. I'll work on implementing this, in the mean time using a script to compress data one file at a time will make it easier to see the affected files.

fhanau commented 1 year ago

Implemented in a29f222. Thank you for the report!