- Posts: 2
- Thank you received: 0
How to center the watermark ?
13 years 8 months ago #92602
by minione
How to center the watermark ? was created by minione
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
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.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 8 months ago - 13 years 8 months ago #92626
by Mohamed Thelji
Replied by Mohamed Thelji on topic How to center the watermark ?
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.
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: 13 years 8 months ago by Mohamed Thelji.
Please Log in or Create an account to join the conversation.
13 years 8 months ago #92630
by minione
Replied by minione on topic How to center the watermark ?
Oui, ok pour les badges.
Par contre comment faire pour les filigranes (Config/Filigrane sur les images) ?
Par contre comment faire pour les filigranes (Config/Filigrane sur les images) ?
Please Log in or Create an account to join the conversation.
13 years 8 months ago #92799
by Xavier
Replied by Xavier on topic How to center the watermark ?
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:
Thanks to use the PHP doc to see how it work.
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:
Code:
$this->imagecopymerge_alpha($thumb, $watermark, $dest_x, $dest_y, 0, 0, $wm_width, $wm_height, (int)$config->get('opacity',0),$trnprt_color);
Please Log in or Create an account to join the conversation.
Time to create page: 0.070 seconds