How do I find and remove corrupt images from directory?

19,194

In Windows Explorer, go into Details view and select lots of the image-specific (and, ideally, JPEG-specific) columns: Dimensions, Bit depth, Camera maker, Camera model, Date taken, Exposure time, Focal length, F-stop, ISO speed, etc.  Look for a column where the valid images consistently have a non-blank value and the corrupt images are blank; then filter on that column.

To be safe, don’t delete them right away.  Drag them into a “Corrupt Images” folder, and then switch that folder into an image/thumbnail view to ensure that you didn’t pick up any good images.  (Then delete them.)

Share:
19,194

Related videos on Youtube

Jeffrey Jenkinson
Author by

Jeffrey Jenkinson

Web developer. PHP, javascript that sort of thing.

Updated on September 18, 2022

Comments

  • Jeffrey Jenkinson
    Jeffrey Jenkinson almost 2 years

    I downloaded a bunch of images off a web server (70,000 or so) from a website I am working on and a fairly large number of them are corrupt but not empty.

    I can see the corrupt ones as thumbnails in a folder as they have no thumbnail image view and delete them but due to the large volume of files its going to take forever!

    Is there any way to either search a folder for corrupt images or some sort of software I can use to clean up a directory containing images?

    I have a windows PC.

  • Karan
    Karan over 11 years
    This assumes that the JPEGs have EXIF data. What if they don't?
  • pauldendulk
    pauldendulk over 7 years
    This worked for me. After sorting the images on the missing column (just one field was enough) I selected image view, so I could verify that the images with the missing field were indeed corrupt.