When an SD card is reformatted or corrupts,all of the data on it, including any photographs you had stored, will be entirely erased. If you discover you still need some of the photos after reformatting, it is still possible to recover them by using a file recovery program that searches through the memory on the card and arranges it to reconstruct the deleted files. You can try CardRecovery which can recover all lost files within a few minutes.