Janie-w3 / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

Patch for /trunk/timthumb.php #411

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is just adding watermark image to the timthumb.
If you accept my small patch. I will be glad, and I will write watermark text 
function too.

Warmest Regards from Turkiye
Deniz Porsuk

Original issue reported on code.google.com by deniz2...@gmail.com on 13 Nov 2012 at 9:25

Attachments:

GoogleCodeExporter commented 9 years ago
Usage

http://localhost/TimThumb/2.8.11.php?src=TimThumb/dolphin.jpg&w=300&h=300&wmi=wa
termark.png|110x220|80

wmi=watermark.png|C|80 - Center image

Original comment by deniz2...@gmail.com on 13 Nov 2012 at 9:31

GoogleCodeExporter commented 9 years ago
Big thanks for providing this!
Helped me a lot!

Actually I've added a "r" parameter to position the watermark on the bottom 
right hand side.

else if(strtolower($watermark_position) == 'r'){
$watermark_positionx = $new_width - $watermark_width; 
$watermark_positiony = $new_height - $watermark_height;
}

Original comment by mackz1337 on 14 May 2014 at 9:58

GoogleCodeExporter commented 9 years ago
Hi
I m a newbie to timthumb. Where do I apply this patch in order for the 
watermark thing to work? Thanks in advance.

Original comment by kapilnaw...@gmail.com on 28 Nov 2014 at 8:51