- Posts: 86245
- Thank you received: 14235
Removing the watermark
Please Log in or Create an account to join the conversation.
-Henry
Please Log in or Create an account to join the conversation.
Do you have an alpha channel in your watermark ?
Please Log in or Create an account to join the conversation.
Well, the version on the server is 2.0.35. However, PHP5-gd is also installed, and it is "5.2.4-2ubuntu5.14". It seems to be much smaller than the version on the server.
| Do you have an alpha channel in your watermark ?
Yes, I initially tried a transparent png. The resulting black square does show the watermark (but not the original image). Then I tried with a transparent gif, and got a black background with a blue square where the watermark should be.
Thank you as usual for your fast response.
Please Log in or Create an account to join the conversation.
$this->imagecopymerge_alpha($thumb, $watermark, $dest_x, $dest_y, 0, 0, $wm_width, $wm_height, (int)$config->get('opacity',0));
by:
imagecopymerge($thumb, $watermark, $dest_x, $dest_y, 0, 0, $wm_width, $wm_height, (int)$config->get('opacity',0));
in the file administrator/components/com_hikashop/helpers/image.php that will remove the alpha channel support of the watermark. Does the watermark works in such cases ?
Please Log in or Create an account to join the conversation.
I made the change to image.php, but it made no difference.
Thank you once more -- I appreciate your help.
-Henry
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 black imagea are happening again, but only for 2 products, the rest of the product images are fine. Do you think its the GD library?
Thanks
Please Log in or Create an account to join the conversation.
Which version are you using ?
It is because of the watermark ?
Are these images different from the others ? Different format ? Different options of the format ?
Please Log in or Create an account to join the conversation.
Nope, the imageas are jpegs like the rest of them.
It could be the watermark, it is similar to the old problem...
Sorry I can't be of better help
Please Log in or Create an account to join the conversation.
If you remove the watermark and try again to upload the image, does it work ? Is it only the thumbnail which has a watermark or only the thumbnail or both?
Please Log in or Create an account to join the conversation.
It was happening to the thumnails and the images, so I re-saved the images to my computer, uploaded them again, and now it works fine. So not a problem with a Hika Shop!
Thanks for your help!
Please Log in or Create an account to join the conversation.