in reply to How do I check the Status of an image file created from a script on another web server?

I can think of two options:

  1. Save copies of all the possible images returned. Use Digest::MD5 to get a signature for each. When you get an image from the server compare its MD5 to the MD5s of the known files. If you get a match then you know what you got.
  2. Optical Character Recognition (OCR). There are lots of programs available that will look at an image and try to figure out what the letters in it say. Some are very clever.

I'd try the first option and only fall back to the second if the image may change without warning. It's probably much harder to get working and still might fail if the image becomes harder to decipher.

-sam

  • Comment on Re: How do I check the Status of an image file created from a script on another web server?

Replies are listed 'Best First'.
Re^2: How do I check the Status of an image file created from a script on another web server?
by Perl Guy (Initiate) on Jan 02, 2005 at 00:00 UTC
    Thanx for your input Sam.

    Does anyone know how to grab the image from the external server, like in my example and bring it into a PERL Script do grab the Digest::MD5 signature.

    Thanx,
    Jason
      use LWP::Simple; use Digest::MD5 qw(md5); print md5(get("http://promote.pair.com/i/pair-banner-current.gif"));