-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
watermark #726
Comments
@includebrasil It's not possible only with lightGallery plugin. It has nothing to do with watermarks. For that you can use for example watermark.js |
Do you know any examples of watermark.js with lightGallery? I'm trying to implement but I could not. |
Hey @includebrasil, The following code works fine for me. var noRendered = 0;
$('#lightgallery').children().each(function() {
var $img = $(this);
var imgurl = $(this).attr('data-src');
watermark([imgurl, 'img/thumb-4.jpg'])
.dataUrl(watermark.image.upperRight(1))
.then(function(img) {
noRendered++;
$img.attr('data-src', img);
if (noRendered === $('#lightgallery').children().length) {
$('#lightgallery').lightGallery();
}
});
}); |
Hey @sachinchoolur, Sorry for the delay! Your code gave me a light. But unfortunately I could not implement! This is my code snippet used in the gallery, how can I implement the code you passed me? `
|
Hello, is it possible to insert a watermark in the gallery images?
The text was updated successfully, but these errors were encountered: