Watermarking with cache

Here's the more advanced version of transparent image watermarking using Apache mod_rewrite and PHP.

While that more basic version is good for purposes of showing general ideas, this script caches watermarked images so that they do not have to be generated with every request.

Caching mechanism checks file change dates and updates the cached file if change in the original file, watermark or script file happens.

Download the code

Here's the output of the script working on this web site:

photo is a part of the Alpha Orionis and does freelance too.

I recommend

Freakonomics Getting Things Done Getting Real Steve Krug: Don't make me think

I'm using

Mac Coda RoR

Hosting is kindly provided by