How to center the watermark ?

  • Posts: 2
  • Thank you received: 0
11 years 8 months ago #92602

Hi,

I would like to know if it is possible to center the watermark ?
(Now, the watermark always seems to be at the bottom right)

Thanks in advance

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

  • Posts: 12953
  • Thank you received: 1778
11 years 8 months ago #92626

Hi,
You'll be able to manage your watermark/badge by :
- Going to your badge configuration page ("Hikashop->Products->Badges->'YOUR BADGE'")
- using the "Vertical/Horizontal distance" and "Position" options

Hope this will help you.

Last edit: 11 years 8 months ago by Mohamed Thelji.

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

  • Posts: 2
  • Thank you received: 0
11 years 8 months ago #92630

Oui, ok pour les badges.
Par contre comment faire pour les filigranes (Config/Filigrane sur les images) ?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #92799

Hi,

To do that, the helper image needs to be edited, it's a core file so be careful when changing date in this file. And at each update, you will loose your data.
Edit the file "administrator/components/com_hikashop/helpers/image.php" function "_resizeImage()" change the parameter at the line:

			$this->imagecopymerge_alpha($thumb, $watermark, $dest_x, $dest_y, 0, 0, $wm_width, $wm_height, (int)$config->get('opacity',0),$trnprt_color);
Thanks to use the PHP doc to see how it work.

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

Time to create page: 0.074 seconds
Powered by Kunena Forum