funcion watermark:
Código PHP:
function watermarkImage ($SourceFile, $WaterMarkText, $DestinationFile) {
list($width, $height) = getimagesize($SourceFile);
$image_p = imagecreatetruecolor($width, $height);
$image = imagecreatefromjpeg($SourceFile);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width, $height);
$black = imagecolorallocate($image_p, 0, 0, 0);
$font = 'arial.ttf';
$font_size = 10;
imagettftext($image_p, $font_size, 0, 10, 20, $black, $font, $WaterMarkText);
if ($DestinationFile<>'') {
imagejpeg ($image_p, $DestinationFile, 100);
} else {
header('Content-Type: image/jpeg');
imagejpeg($image_p, null, 100);
};
imagedestroy($image);
imagedestroy($image_p);
};
Código PHP:
$SourceFile = "photos/".$row[1];
$DestinationFile = 'asinoxWater.png';
$WaterMarkText = 'Copyright by Asinox';
watermarkImage ($SourceFile, $WaterMarkText, $DestinationFile);
el problema donde esta?, pues que la galeria de fotos que estoy usando, es lightBox, manejada con javascript y para ver la foto "en grande" es via un link
ejemplo:
Código PHP:
<a href="photos/".$row[1]."\" class=\"highslide\" onclick=\"return hs.expand(this, {captionId: 'caption1'});\">
<img src=\"photos/tb_".$row[1]."\" width=\"41\" height=\"41\">
</a>
Entonces no veo, como pasarle la imagen a la funcion cuando haga click para ver la imagen en tamaño real (grande)
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)
![Neurótico](http://static.forosdelweb.com/fdwtheme/images/smilies/scared.png)