- Posts: 87
- Thank you received: 2
Adding watermark
The image size is the same as the larger image, the same as the popup from product page.
At present none of the existing images on the site show this watermasrk.
I then tried deleting the uploaded file (used in the popup) and added it again from the local source. It then only showed the default icon. I tried again this time deleting from within the products back-end page and now I have a white image with drop shadow (hard edge).
I have tried deleting cache of thumbs and preview and thumbnails in com_hikashop but still the correct image does not appear.
Are there other files on the server that need deleting before uploading the images again? Or perhaps I have messed up my work-flow.
Then next question is, can a public user copy images from the site even though there is a watermark? Normally I would add these to the image themselves before uploading but should this work directly in hikashop that would save my a little time.
Many thanks
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Could you edit the file administrator/components/com_hikashop/helpers/image.php and change the code:
if($image_x && $image_y){
$this->width=$new[0];
$this->height=$new[1];
to:
$this->width=$new[0];
$this->height=$new[1];
if($image_x && $image_y){
That resolved the problem on our end.
Please Log in or Create an account to join the conversation.
Opened product page, deleted the image, and selected a new image, but now the image is white without the drop shadow.
Please Log in or Create an account to join the conversation.
What kind of image do you use ? Gif ? I read a post with that same problem with a gif: www.codingforums.com/archive/index.php/t-128046.html
Using png for the watermark we didn't get the problem.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
If it's the thumbnail which is white then, It might be a problem with GD. I recall that someone else had to reinstall his apache/php and then the white issue disappeared.
Please Log in or Create an account to join the conversation.
I did this:
Cleared cache in Joomla back-end and then using ftp deleted the relevant product image files and watermarks in com_hikashop/upload/ and in the subfolder thumbnail.
Uploaded the product image again from within the back-end but with new names, then back in the config --> files window I uploaded the watermark image again.
So the image is showing again however there are no watermarks.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
So now, I deleted the watermark and product images from within the back-end, but noticed by using ftp that only the product images had been deleted from the server, so I deleted the watermark images using ftp in the two folders.
I first then uploaded again the watermark image using the config --> files page, and then the product image.
All is fine except no watermark is showing.
Maybe I am missing the point somewhere with the water mark image. The size is 800 x 566px is this a problem?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Not something to do with the fact I am logged in to the front-end as administrator is it? I mean is there a config that say turn on the watermark for the public level?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The issue I have now is making the watermark file in a way that it appears centered on the product images since some are vertical images and some horizontal.
If I create an equal-sided file ie 450x450px it will be embedded centrally and without being stretched to fit?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I take it from this thread that the watermark only works if you add an image via the product page? And the watermark has to be configured first? Is this correct?
Furthermore it won't work in either case if I've done a mass upload?
Thanks for your help.
Dunxmax
DunxMax
The more we learn the less we know.
Please Log in or Create an account to join the conversation.
If you want to add an image on top of your images automatically, you can use a badge instead (menu Products>Badges). As the badge image is superposed with the product image by the browser it can work directly for all the products while for watermarks, it has to be processed for each image at upload as it is an intensive process.
Please Log in or Create an account to join the conversation.