Terminal Command Line to find corrupted files

I do have just one corrupted photo into my Photos Library. Is there is any UNIX command line that I can use in terminal in order to scan my Photos Library Folder and find out which file is corrupted?