Skip to main content

How to center the watermark ?

13 years 8 months ago #92602 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

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

13 years 8 months ago - 13 years 8 months ago #92626 by Mohamed Thelji
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: 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
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.

13 years 8 months ago #92799 by Xavier
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:
Code:
$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.070 seconds
Powered by Kunena Forum