For all of you that want to watermark productimages with cache, here it is:
Download sript here:
http://fanhaijun.com/wp-content/uploads/files/watermark-with-cache.zip
make a folder called "watermark" in your root and put in the files called:
– cache
– watermark.php
– watermark.png –> change this picture to your picture!
Then set the permissions 777 to the folder "cache".
The change the htaccess.txt to the folowing parameters:
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule \.(gif|jpeg|jpg)$ ../../../../watermark/watermark.php [QSA,NC]
Now upload the htaccess.txt to components/com_virtuemart/shop_image/product/
and if you want to the thumbnails in components/com_virtuemart/shop_image/product/resized.
AND RENAME TO .htaccess
And you are done.
Works on joomla 1.5.10 and virtuemart 1.1.3.