Fellow Monks:
The Question:
Is there a Perl Module that will conduct a verification of the integrity of a JPEG (or other) image file?
The Background:
Every five minutes I am downloading via ftp from an internet linked camera server a still JPEG image (roughly 27KB in size) and archiving it. This is done through an EXPECT and perl script.
The Problem:
99.9% of the time the download of the JPEG image is a success. However, every once and a while I get a corrupted
or incomplete image.
Things Checked:
- Confirmed that the file is being transferred as binary (BIN)
- Checked for timing out of transfer (not the case)
The Need:
I need to be able to verify whether or not the JPEG that I just downloaded is good or not, if it is bad I will delete or replace it with a retry. I cannot base the check on size, because depending on what is seen the image size will vary.
ad grates:
I humbly thank you in advance for your insight and help.