I want an ASP/VBscript function which will do a search on google images for a particular keyword phrase. If there are at least 5 results then it will grab the image at the fifth result.
If there are not sufficient results, then it will shorten the keyword phrase by taking off the last word until the search does result in a successful result. If for whatever reason, there is NOT a successful result then a default image from the server will be used (if that last bit doesn't make sense, then hopefully it will do soon).
When the script finds an image (either the 5th result or default), it will take that image and
crop it, so that it is 150*150. If this is larger in width or height than the original image then it will take the 4th/3rd/2nd/1st result depending. If this is still not possible, then it will take the default image.
Once the image is cropped, it will be saved on the server with the filename being the same as the full phrase (replacing spaces for - making it lower case)
The function will return the full path to the file which has been saved on the server.
Additional components may be used if necessary although clearance on cost must be got first.
Once you submit a bit, please also PM me or your bid will not be accepted.
Feel free to ask any further questions.