Horje

Check Image is corrupted

Here runs following code to Check Image is corrupted
index.php
Example: PHP
<?php
  $fileName = 'https://horje.com/efeff.png'; //filepath
  if(getimagesize($fileName) === false){
    echo "Image is corrupted";
  }
  else{
    echo "Image is ok";
  }
?>

Output should be:

Check Image is corrupted




Type:
php
Category:
Web Tutorial
Sub Category:
PHP Image Tutorial
Uploaded by:
Admin