I currently use an on-the-fly watermark when a visitor of my website clicks a link to an image.
This is done with a htaccerss AddHandler and a [url removed, login to view] script. In this script, the watermark is stamped on the image and the output shown to the user.
I want you to make a simple modification to that script:
1) check if a chached version of the image is available when the [url removed, login to view] is executed.
If there is a cached version of the watermarked image, show this picture to the user.
2) If no cached file exists, write a cached version of the image and show the output to the browser.
The cached image should be written in a subfolder of the folder with the image ("cache/"). There should a "_cached" be inserted in the filename of the cached image, as well ("[url removed, login to view]").
Currently, I check if the image width is smaller than 389 pixels. If so, the image is not watermarked. This check must stay intact. Images that are smaller than 389 pixels should not be cached.
You only have to program the check if the cache file exists and the writing of the cache file.
You will get the source code of the htaccess and [url removed, login to view] when I accept your bid.
Spammers will not be accepted, so post something relevant to the project.