how to check image integrity?

ساخت وبلاگ
Hello guys,
I have a webcam which sends every a fixed interval an image to my server. I have a PHP script which individuates the last sent image and renames it "webcam.jpg". Sometimes it happens that the image is not completely uploaded, and I obtain something like this:
Schedule_20180205-083406.jpg
this image is correctly readable, but it has some holes that are replaced with grey or something similar.
What I would like to do is recognizing if the sent image presents this problem, and moving it to a different path. Can I do this with PHP?
Thank you:D
Attached Images
CodingForums...
ما را در سایت CodingForums دنبال می کنید

برچسب : نویسنده : codingforums بازدید : 234 تاريخ : جمعه 20 بهمن 1396 ساعت: 16:05