Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: not2easy
I have approximately 80,000 jpgs. They are sorted into folders in a variety of sizes: 80x80 (large), 40x40 (medium), 20x20 (small), and 10x10 (icon).
many of them, perhaps a few thousand, are real photos. But probably the majority of them are blank - just a black square. A scan gone bad.
I need to delete all the empty ones - remove any jpg image of a plain black square, leaving only the JPGs that are not plain black squares.
What is the quickest way to do this? Say, if I needed it to be finished by tomorrow morning, and it's 9:52pm now, and I still have to do my laundry. How would you do this?
I looked at the folder sorted by file size. I figured if one of the black squares is 809 bytes, then all the images with exactly 809 bytes will be empty ones. But Windows Explorer, for some unfathomable reason, won't show me the exact byte size of the 10x10 files - they all say 1KB,1KB,1KB,1KB,1KB. Same in XP or Vista, I've checked in both.
This should be a simple job, but I'm discovering that it might actually be a long, arduous chore. Any advice warmly welcomed
I found a more comfortable way. In Vista, I viewed the folder as "medium icons". Waited a few seconds for all the thumbnails to render, then sorted the view by size. Then it was easy to see a large section on continugous blank squares, select those, and delete.
That method also allowed me to do a full-page visual scan to make sure I wasn't deleting any legit images. The task is finished and it only took me 10 minutes. Now... it'll take an hour to upload them all to my server... now off to do my laundry.
That reminds me. I need to do some laundry myself! :)