WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
Function Replace($image){$pic = preg_replace('|[^a-zA-Z0-9_\-.]|', '-', $image);return $pic;}
<?php$path = $_SERVER['DOCUMENT_ROOT'].$_SERVER['REQUEST_URI'];$image = imagecreatefromstring(file_get_contents($path));$w = imagesx($image);$h = imagesy($image);// You can change the watermark filename below.$watermark = imagecreatefrompng('watermark.png');$ww = imagesx($watermark);$wh = imagesy($watermark);imagecopy($image, $watermark, $w-$ww, $h-$wh, 0, 0, $ww, $wh);header('Content-type: image/jpeg');imagejpeg($image);exit();?>
RewriteCond %{REQUEST_FILENAME} !thumb