PDA

View Full Version : Text Watermark font size



Nguyen Dat tai
October 10, 2013, 05:48 AM
Hi Flynax,

How to change font size for Text Watermark?

I would like a bigger size.

Thanks,
Nguyen

Viktor
October 10, 2013, 08:14 AM
Hello Nguyen,

You cannot change font size for watermark,

if you want I can change it for you in program code. What size do you want for it?

Nguyen Dat tai
October 10, 2013, 12:46 PM
Hi Viktor,

I mean which file (.tpl, .php,...) to change it?

Thanks,

Nguyen



Hello Nguyen,

You cannot change font size for watermark,

if you want I can change it for you in program code. What size do you want for it?

Viktor
October 11, 2013, 04:03 AM
Hello Nguyen,

Please see it here: ftp://includes>>classes>>rlResize.class.php

method: saveImage()

and find line:
imagestring($watermark, 2, 5, 4, $w_text, $tc);

2-nd parameter for font size. Higher number corresponds to a larger font.

Nguyen Dat tai
October 11, 2013, 06:41 AM
HI Viktor,
I change 5 to 8. But it is not working.

Thanks, Nguyen


imagestring($watermark, 2, 8, 4, $w_text, $tc);

Thanks,
Nguyen


Hello Nguyen,

Please see it here: ftp://includes>>classes>>rlResize.class.php

method: saveImage()

and find line:
imagestring($watermark, 2, 5, 4, $w_text, $tc);

2-nd parameter for font size. Higher number corresponds to a larger font.

Alex
October 11, 2013, 10:10 AM
Nguyen,

I hope you do not think that these changes are applied also for exists images with watermarks?
This will work only for a new images ;)

Nguyen Dat tai
October 11, 2013, 11:50 AM
Hi Alex,

I have recently added a new listing http://www.autoclassi.com/oto/ford/ranger/ford-ranger-2.2-2013-744-trieu-210.html.
But it is still not working.

Why?

Thanks,
Nguyen

Nguyen Dat tai
October 14, 2013, 04:53 AM
Hi.

I've followed this guide from John http://www.flynax.com/forum/showthread.php?1617-Change-the-font-size-of-the-watermark-text

Thanks,
Nguyen

Viktor
October 14, 2013, 09:16 AM
Hello Nguyen Dat tai,

I have changed color for your watermark text and it works good. Please try to add new photos in listing again and you will see it.

color you can change at the same place 2 line above:
$tc = imagecolorallocate($watermark, 255, 255, 255);
change 255, 255, 255 to your color in RGB format. for example red: 206, 2, 2

Nguyen Dat tai
October 14, 2013, 09:30 AM
OK Viktor,

Thank u so much!