How do I find and remove corrupt images from directory?
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.)
Related videos on Youtube
Jeffrey Jenkinson
Web developer. PHP, javascript that sort of thing.
Updated on September 18, 2022Comments
-
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.
-
CharlieRB over 11 yearsAre these images all the same format (jpeg, gif, bmp, etc.)?
-
Jeffrey Jenkinson over 11 yearsYeah they are all jpegs.
-
Karan over 11 yearsPossible duplicate of Automating the scanning of graphics files for corruption. Also see Incomplete jpg or image files?
-
-
Karan over 11 yearsThis assumes that the JPEGs have EXIF data. What if they don't?
-
pauldendulk over 7 yearsThis 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.