Mega Code Archive

 
Categories / Php / Code Snippets
 

Check if an image exists using GD

<?php //check if image exists if($img = @GetImageSize("testimage.gif")) { echo "image exists"; } else { echo "image does not exist"; } ?>