PHP: Determine Visually Corrupted Images (yet valid) downloaded via Curl with GD/Imagemagick
- 阅读更多 关于 PHP: Determine Visually Corrupted Images (yet valid) downloaded via Curl with GD/Imagemagick
I'm using Curl via Proxies to download images with a scraper I have developed. Unfortunately, it gets the odd image which looks like these and the last one is completely blank :/ When I test the images via imagemagick (using identify) it tells me they are valid images. When I test the images via exif_imagetype() and imagecreatefromjpeg() again, both these functions tell me the images are valid. Does anyone have a way to determine if the image has majority of greyness or is completely blank/white and these are indeed corrupted images? I have done a lot of checking with other questions on here,