Test3.jpg Corrupt JPEG data: 1 extraneous bytes before marker 0xe2 1996 x 2554 24bit Exif P 6582169 Test2.jpg 1996 x 2554 24bit Exif P 6582116 Premature end of JPEG file This should create a jpeginfo command which you can either run in place or copy wherever you want (possibly using make install). (For example, although I can't vouch for its integrity, this blog post seems legit and includes a precompiled download.) To build it yourself: $ git clone I'm sure you could even do it on Windows with Cygwin or MinGW. The program is command-line, and comes as source code, but it should be easy to build and use on any Linux distribution or on a Mac with a development environment set up properly. (After that, I make sure their checksums don't change as part of my normal backup/bitrot protection.) I use this as part of my initial file transfer, to make sure everything copied okay without relying on manual checking. It can check files for different types of JPEG errors and corruption and either return an error code (the most useful thing for scripting), or just delete files with errors. If you are talking about JPEG files, then the utility jpeginfo is exactly what you're looking for.
0 Comments
Leave a Reply. |