![]() |
Use |
Example:
PHP
<?php
$fileName = 'https://horje.com/avatar.png'; //filepath
if(getimagesize($fileName) === false){
echo "Image is corrupted";
}
else{
echo "Image is ok";
}
?>
Example:
PHP
<?php
$fileName = 'https://horje.com/efeff.png'; //filepath
if(getimagesize($fileName) === false){
echo "Image is corrupted";
}
else{
echo "Image is ok";
}
?>
How to check Image error or valid in PHP | PHP Image Tutorial |
How to create Title to Image in PHP | PHP Image Tutorial |
How to convert a image link to Base64 in PHP | PHP Image Tutorial |
How to convert all external image link from html string to base64 in PHP | PHP Image Tutorial |
Check Image is Valid | PHP Image Tutorial |
Check Image is corrupted | PHP Image Tutorial |
Read Full: | PHP Image Tutorial |
Category: | Web Tutorial |
Sub Category: | PHP Image Tutorial |
Uploaded by: | Admin |
Views: | 107 |
Tested on: | PHP 7 |