Check if image exists in folder or not currupted in php

Check if image exists in folder or not currupted in php:: $full_path = Full Image path; (Like: ../dd/tmp.jpg) if(!file_exists($full_path)){     //Image Not Available or Not Exists }else{     //Image File Exists    //Check if image not damaged.     $ext = strtolower(pathinfo($full_path, PATHINFO_EXTENSION));     if ($ext === ‘jpg’) { $ext = ‘jpeg’; … Read moreCheck if image exists in folder or not currupted in php