Hi,
I have the following understanding of using the phothumbof to merge a requested image with my watermark png file:
1. Instead of specifying direct link to an image I use phpthumbof snippet call with appropraite wmi params
2. To protect images from being directly accessed I use RewriteCond/RewriteRule of the htaccess file to direct again to the phpthumb script
Is my understanding correct? If yes, can someone please provide an example of the correct example of the rewirte rule? I've the following idea:
RewriteCond %{REQUEST_URI} ^/images/subdir1/subdir2/.*\.(jpg|png|gif|bmp{0,1}g)$
RewriteRule ^(.*)$ /path/to/phpthumb.php?someparams [NC,L,QSA]
If my undrstanding isn't correct, will someone suggest the better practice of generating watermarks on the fly using modx?
Thanks in advance!