I'm not familiar with the current format of iPhoto and Aperture libraries. I suspect you'll need to descend into some sort of folder tree, in which case, the sticky article at the top of this forum shows how to do that. You'll have to figure out which versions of the files are the originals though, and copy those out.