Mod to adjust watermark transparency
Posted: 09 Apr 2009, 02:36
This mod will allow your watermarks to be faded to a percentage 100% is the same the current way it works.
I use 15% to give a ghostly watermark.
Find: administrator/components/com_phocagallery/helpers/phocagallery.php
Find:
// Watermark
if ($fileWatermark != '') {
ImageCopy($image2,$waterImage1,$locationX,$locationY,0,0,$wW,$hW);
}
// End Watermark
Replace with:
// Watermark
if ($fileWatermark != '') {
ImageCopymerge($image2,$waterImage1,$locationX,$locationY,0,0,$wW,$hW, 15);
}
// End Watermark
The final parameter is now the percentage of the watermark picture that you see.
It should also be easy to add into the parameter list as a preset, if I get time I'll have a look on how to do it.
An1j21
I use 15% to give a ghostly watermark.
Find: administrator/components/com_phocagallery/helpers/phocagallery.php
Find:
// Watermark
if ($fileWatermark != '') {
ImageCopy($image2,$waterImage1,$locationX,$locationY,0,0,$wW,$hW);
}
// End Watermark
Replace with:
// Watermark
if ($fileWatermark != '') {
ImageCopymerge($image2,$waterImage1,$locationX,$locationY,0,0,$wW,$hW, 15);
}
// End Watermark
The final parameter is now the percentage of the watermark picture that you see.
It should also be easy to add into the parameter list as a preset, if I get time I'll have a look on how to do it.
An1j21