Corrupted photos scanner

All non-XnView related: softwares, formats, imaging, photography...

Moderators: XnTriq, xnview

Harry
Posts: 7
Joined: Mon Sep 08, 2008 4:06 pm

Corrupted photos scanner

Postby Harry » Mon Sep 08, 2008 4:13 pm

Hello!

First I have to introduce myself. My name is Nicolas and I'm french so excuse my bad english . I'm not a profesionnal but since I was a boy, I have ever made photos. I have thousands of photos in my old hard drive disc (80GB, 1999), most of them are digital but some are scanned photos of original damaged photos rebuilt by Photoshop.

Two days ago, I have seen some photos damaged in a similar way of these photos and I ask your help. I want to know if you know a program who scan the jpeg-header to know if the file is corrupt like the JFV utility.

Thanks for your help.

User avatar
XnTriq
Moderator & Librarian
Posts: 5090
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Postby XnTriq » Mon Sep 08, 2008 9:15 pm

Welcome to the forum, Harry :-)

I assume you're already aware of JPEGsnoop.

Have you tried IdentifyTruncatedJpeg by Marco Schmidt? It's a “Java command line program to identify truncated JPEG files (cause: incomplete downloads, partial recovery)”.

Harry
Posts: 7
Joined: Mon Sep 08, 2008 4:06 pm

Postby Harry » Mon Sep 08, 2008 9:26 pm

I'm trying it.
I will give you a feedback when I have results.

Harry
Posts: 7
Joined: Mon Sep 08, 2008 4:06 pm

Postby Harry » Wed Sep 10, 2008 10:30 pm

It works well. Now I have to edit these photos, some are too damaged to keep them but some are a little damaged but not graphicaly. I will edit those ones with XnView with resizing@100% and quality@95% to keep original size and good quality. Thanks a lot for helping me.

User avatar
XnTriq
Moderator & Librarian
Posts: 5090
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Corrupted photos scanner

Postby XnTriq » Tue Nov 04, 2008 3:15 am

Coder's Lagoon wrote:Bad Peggy is my latest Windows application. It searches for damaged JPEG files and will validate and verify pictures for truncation and other blemishes which sometimes occur when such files are getting downloaded or restored from bad backups.

It's quite useful for example to check if your precious photo library is still all intact (mine unexpectedly wasn't) and it's fast, comfortable to use and reliable in the analysis it does. Runs under Windows XP, 2000 and 98SE. Please notice that you might have to download the .NET Framework 2.0 if it hasn't been installed on your system so far.

User avatar
XnTriq
Moderator & Librarian
Posts: 5090
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Corrupted photos scanner

Postby XnTriq » Mon Mar 30, 2009 4:10 am

Marc Rochkind: ImageVerifier
Verify active or archived images structurally (JPEG, raw, DNG, PSD, TIFF) and by stored 512-bit hash. Ensures that backups are correct and that archives are still valid. Stores results in a built-in database. Goes inside image formats and decompresses to determine integrity of image. Takes advantage of multiple CPUs/cores.

Harry
Posts: 7
Joined: Mon Sep 08, 2008 4:06 pm

Re: Corrupted photos scanner

Postby Harry » Mon Mar 30, 2009 12:53 pm

Thank you !
Now, I have an other (not a problem) challenge: find a program to find corrupt photos on Linux ! (I guess ImageVerifier will work with WINE =D)
I have dropped windowsa few months ago and Linux is so better than windows to me...
So thank you again !

User avatar
XnTriq
Moderator & Librarian
Posts: 5090
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Corrupted photos scanner

Postby XnTriq » Mon Mar 30, 2009 8:45 pm

Harry wrote:Now, I have an other (not a problem) challenge: find a program to find corrupt photos on Linux ! (I guess ImageVerifier will work with WINE =D)!

Challenge accepted :P

IdentifyTruncatedJpeg should also run on Linux, since it is written in Java.

Lemkesoft (SnapsCleaner » Key features) wrote:SnapsCleaner increases the process reliability of your workflow by quickly and reliably checking the JPEG picture files for embedded metadata and simply deleting all incorrect items. In addition, SnapsCleaner checks the general integrity and validity of each JPEG file (correct number of bytes, correct data stream, decompression test).

The following versions are available:

  • Macintosh-Version for Mac OS 9.X and Mac OS X
  • Windows-Version for WIN 2000 and WIN XP
  • Please contact us if you are interested in Linux porting or the development of a command line version

Jason Hudgins (Free Open Source Software) wrote:Image::TestJPG : CPAN
This is a small perl library with a single method that will tell you if a jpeg image is corrupt or not. It uses libjpeg to parse the image data and will simply return true or false. If you have a gazillion images and you need a perl script to detect all the ones with errors, then this lib is exactly what you need.

DrSpud (Projects and interests » Simple JPEG Check) wrote:Does a quick check for JPEG/JPEG2000 header and footer bytes in files to verify JPEG file format and detect truncated files. You can run it from the command-line, or just drag & drop files/folders onto the exe. This tool was originally designed to detect partially downloaded pictures, and is exceedingly useful for checking thousands of files at once to identify bad JPEG files. It won't, however, detect problems with the actual JPEG data (like random corruption in the middle of files), just the very beginning and very end. Runs on Linux and Windows.

Harry
Posts: 7
Joined: Mon Sep 08, 2008 4:06 pm

Re: Corrupted photos scanner

Postby Harry » Tue Mar 31, 2009 12:55 pm

Wow ! :shock:
Do not say to me you have found these programs alone searching in the entire internet ! You're very good !
I'm curious, what keywords did you use to find them ?
Well thanks a lot !!! I will need your help in a few month if you don't disagree because a fan of photography gave me a jewel (for me !!!, he thinks it's trash now): a Canon T90 and a 55/250 but he have two, maybe three little (big?) problems... but now I'm in Canada for a year. When I will return to home (France), I hope you will be able to help me :D

Thank you again and again for your help and see you later !

User avatar
XnTriq
Moderator & Librarian
Posts: 5090
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Corrupted photos scanner

Postby XnTriq » Wed Apr 01, 2009 2:00 am

Harry wrote:I have dropped windowsa few months ago and Linux is so better than windows to me...

FYI: You don't have to say au revoir to XnView, just because you're a Linux user now. Pierre is working on a very promising multi-platform edition, which will eventually have all the features of the “classic” Windows version.

Harry wrote:Do not say to me you have found these programs alone searching in the entire internet !

I'd like to take credit for it, but it's actually Almighty Google doing all the heavy lifting for me.

Harry wrote:I'm curious, what keywords did you use to find them ?

Harry wrote:When I will return to home (France), I hope you will be able to help me :D

Bring it on ;-)

Harry wrote:Thank you again and again for your help and see you later !

No big deal. I hope you'll enjoy your time in Canada, Harry. Don't forget to drop by once in a while to give us your opinion & ideas regarding XnView MP.

À bientôt :-)

boredofthis
Posts: 1
Joined: Wed Apr 03, 2013 3:01 am

Re: Corrupted photos scanner

Postby boredofthis » Wed Apr 03, 2013 3:12 am

Solution:

I found the perfect tool for what I needed:

http://www.thomasbarker.co.uk/2011/05/2 ... age-files/

Searches recursively through a directory and finds any corrupted JPEGS. Looks like you can use as many CPUs as you like to do it also.

Worked for me.

User avatar
XnTriq
Moderator & Librarian
Posts: 5090
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Corrupted photos scanner

Postby XnTriq » Wed Apr 03, 2013 3:30 am

boredofthis wrote:Solution:

I found the perfect tool for what I needed:

http://www.thomasbarker.co.uk/2011/05/2 ... age-files/

Searches recursively through a directory and finds any corrupted JPEGS. Looks like you can use as many CPUs as you like to do it also.

Worked for me.

See also: Logiciel pour photos corrompues

User avatar
oops66
XnThusiast
Posts: 1998
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: Corrupted photos scanner

Postby oops66 » Sat Feb 27, 2016 11:50 pm

... Or via a Linux command line in the terminal (recursive) for linux users:

With jpeginfo:

Code: Select all

find . -iname "*.jpg" -print0 | xargs -0 jpeginfo -c -i -v | grep -e WARNING -e ERROR

Code: Select all

 ex:...
./001.jpg 1795 x 1165 32bit Exif  Normal Huffman,304dpi 5598768  Unsupported color conversion request  [ERROR]
./002.jpg 1795 x 1165 32bit Exif  Normal Huffman 2206202  Unsupported color conversion request  [ERROR]
./003.JPG 2592 x 1944 24bit Exif  Normal Huffman 1338673  Corrupt JPEG data: 5 extraneous bytes before marker 0xd4  [WARNING]
./004.jpg 2592 x 1944 24bit Exif  Normal Huffman 1329907  Corrupt JPEG data: 41 extraneous bytes before marker 0xd4  [WARNING]
./005.JPG 1795 x 1165 32bit Exif  Normal Huffman 2206228  Unsupported color conversion request  [ERROR]
./aaa/006.jpg 2592 x 1944 24bit Exif  Normal Huffman  739930  Premature end of JPEG file  [WARNING]
./bbb/007.jpg  Not a JPEG file: starts with 0x50 0x61  [ERROR]
./007.jpg  Empty input file  [ERROR]
./008.jpg  Unsupported JPEG process: SOF type 0xc3  [ERROR]


With jhove:

Code: Select all

find . -iname "*.jpg" -print0 | xargs -0 jhove -m JPEG-hul | grep -e "RepresentationInformation:" -e "Not well-formed" -e "Well-Formed, but not valid"
XnViewMP 0.82 Linux X64 - Ubuntu 16.04 LTS - X64


Return to “Miscellaneous”

Who is online

Users browsing this forum: No registered users and 1 guest