OS Property support center

Change Watermarks

  • jcortesweb
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 7 months ago #19913 by jcortesweb
Change Watermarks was created by jcortesweb
Is there anyway to customize the watermarks on the images?

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #20144 by Mr. Dam
Replied by Mr. Dam on topic Re: Change Watermarks
Hi,
The watermark value is the property type name. What do you want to customize it?
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • jcortesweb
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 6 months ago #20159 by jcortesweb
Replied by jcortesweb on topic Re: Change Watermarks
I wanted to change the font size, color and put it at the bottom-middle of all the images. If I could watermark a png image or something over the images that would be even better but just changing the style of the text would be good.

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #20173 by Mr. Dam
Replied by Mr. Dam on topic Re: Change Watermarks
Hi,
You can change the font of the watermark text from function in the file
components > com_osproperty > helper > common.php
administrator > components > com_osproperty > helper > common.php

function watermarkImage
/**
* Watermaking
*
* @param $SourceFile: Source photo file
* @param $WaterMarkText: text value of watermark
* @param $DestinationFile: Destination photo (photo with watermark text) file
*/
$black = imagecolorallocate($image_p,238, 29, 29);
Color of the watermark text
$font = JPATH_ROOT.DS.'components'.DS.'com_osproperty'.DS.'helpers'.DS.'pdf'.DS.'font'.DS.'arial.ttf';
Font link
$font_size = 30;
Font size of the watermark text

Good luck
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan