tjko / jpegoptim

jpegoptim - utility to optimize/compress JPEG files
http://www.iki.fi/tjko/projects.html
GNU General Public License v3.0
1.57k stars 116 forks source link

Error on incomplete files #58

Closed PepeLopez closed 2 years ago

PepeLopez commented 6 years ago

When having a jpeg file, which seems to be corrupted, e.g. file is missing content due to transfer problems, jpegoptim steps out with an error like this:

test.jpg 960x741 24bit P IPTC ICC JFIF [ERROR]

The similar tool for png files, optipng, offers a -fix switch to repair such problems.

Any possibility to implement such a fix-switch in jpegoptim?