This question already has an answer here:
I have a client who is having a lot of trouble managing his photos. He has multiple copies in multiple Aperture and iPhoto libraries, imports from old PCs, etc. What I'm looking for is a piece of software for OS X that can grab all these photos and reorganize them by EXIF data, say into YYYY/YYYY-MM-DD/*.jpg, eliminating duplicates as it goes. Does such a thing exist?